Skip to content

Commit

Permalink
Add explicit linux config setting in @bazel_tools and use that for th…
Browse files Browse the repository at this point in the history
…e remotejdk config_setting.
  • Loading branch information
meisterT committed Sep 25, 2018
1 parent 153ef32 commit 42fd1ae
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/conditions/BUILD.tools
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@ config_setting(
visibility = ["//visibility:public"],
)

config_setting(
name = "linux_x86_64",
values = {"cpu": "k8"},
visibility = ["//visibility:public"],
)

config_setting(
name = "linux_aarch64",
values = {"cpu": "aarch64"},
4 changes: 3 additions & 1 deletion tools/jdk/BUILD
Original file line number Diff line number Diff line change
@@ -342,7 +342,9 @@ alias(
"//src/conditions:darwin_x86_64": "@remotejdk_macos//:jdk",
"//src/conditions:windows": "@remotejdk_win//:jdk",
"//src/conditions:linux_aarch64": "@remotejdk_linux_aarch64//:jdk",
"//conditions:default": "@remotejdk_linux//:jdk",
"//src/conditions:linux_x86_64": "@remotejdk_linux//:jdk",
# Fall back to the local JDK on any other platform.
"//conditions:default": "@local_jdk//:jdk",
}),
visibility = ["//visibility:public"],
)

0 comments on commit 42fd1ae

Please sign in to comment.