Skip to content

Commit

Permalink
Switch to using new-style Bazel platform constraints. (#2484)
Browse files Browse the repository at this point in the history
The old style will stop working in Bazel 6.0 (see bazelbuild/bazel@3469784)

Signed-off-by: Benjamin Peterson <[email protected]>
Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
benjaminp authored and jpsim committed Nov 29, 2022
1 parent a1fc669 commit ac505c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mobile/third_party/rbe_configs/config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ package(default_visibility = ["//visibility:public"])
toolchain(
name = "cc-toolchain",
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
"@bazel_tools//tools/cpp:clang",
],
target_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
toolchain = "//third_party/rbe_configs/cc:cc-compiler-k8",
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
Expand All @@ -37,8 +37,8 @@ platform(
name = "platform",
parents = ["@local_config_platform//:host"],
constraint_values = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
"@bazel_tools//tools/cpp:clang",
],
exec_properties = {
Expand All @@ -52,8 +52,8 @@ platform(
name = "platform-asan",
parents = ["@local_config_platform//:host"],
constraint_values = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
"@bazel_tools//tools/cpp:clang",
],
exec_properties = {
Expand Down

0 comments on commit ac505c7

Please sign in to comment.