Skip to content

Commit

Permalink
fix(native_image): add missing _linux_constraint attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Sep 1, 2023
1 parent 6303fd6 commit 24791e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/native_image/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ _DEFAULT_GVM_REPO = "@graalvm"
_GVM_TOOLCHAIN_TYPE = "%s//graalvm/toolchain" % _RULES_REPO
_BAZEL_CPP_TOOLCHAIN_TYPE = "@bazel_tools//tools/cpp:toolchain_type"
_BAZEL_CURRENT_CPP_TOOLCHAIN = "@bazel_tools//tools/cpp:current_cc_toolchain"
_LINUX_CONSTRAINT = "@platforms//os:linux"
_MACOS_CONSTRAINT = "@platforms//os:macos"
_WINDOWS_CONSTRAINT = "@platforms//os:windows"

Expand Down Expand Up @@ -66,6 +67,9 @@ _NATIVE_IMAGE_ATTRS = {
"_cc_toolchain": attr.label(
default = Label(_BAZEL_CURRENT_CPP_TOOLCHAIN),
),
"_linux_constraint": attr.label(
default = Label(_LINUX_CONSTRAINT),
),
"_macos_constraint": attr.label(
default = Label(_MACOS_CONSTRAINT),
),
Expand Down

0 comments on commit 24791e1

Please sign in to comment.