Skip to content

Commit d1327b6

Browse files
limdorgravypod
authored andcommitted
Do not use constraints from bazel_tools
Fixes #1953
1 parent eba5bfa commit d1327b6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

toolchains/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ toolchain(
5656
name = "rbe_container_cc_toolchain",
5757
exec_compatible_with = [
5858
"@io_bazel_rules_docker//platforms:run_in_container",
59-
"@bazel_tools//platforms:x86_64",
60-
"@bazel_tools//platforms:linux",
59+
"@platforms//cpu:x86_64",
60+
"@platforms//os:linux",
6161
"@bazel_tools//tools/cpp:clang",
6262
],
6363
target_compatible_with = [
64-
"@bazel_tools//platforms:linux",
65-
"@bazel_tools//platforms:x86_64",
64+
"@platforms//os:linux",
65+
"@platforms//cpu:x86_64",
6666
],
6767
toolchain = "@buildkite_config//cc:cc-compiler-k8",
6868
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",

toolchains/docker/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docker_toolchain(
4242
toolchain(
4343
name = "default_linux_toolchain",
4444
target_compatible_with = [
45-
"@bazel_tools//platforms:linux",
45+
"@platforms//os:linux",
4646
],
4747
toolchain = "@docker_config//:toolchain",
4848
toolchain_type = ":toolchain_type",
@@ -51,7 +51,7 @@ toolchain(
5151
toolchain(
5252
name = "default_windows_toolchain",
5353
target_compatible_with = [
54-
"@bazel_tools//platforms:windows",
54+
"@platforms//os:windows",
5555
],
5656
toolchain = "@docker_config//:toolchain",
5757
toolchain_type = ":toolchain_type",
@@ -60,7 +60,7 @@ toolchain(
6060
toolchain(
6161
name = "default_osx_toolchain",
6262
target_compatible_with = [
63-
"@bazel_tools//platforms:osx",
63+
"@platforms//os:osx",
6464
],
6565
toolchain = "@docker_config//:toolchain",
6666
toolchain_type = ":toolchain_type",

0 commit comments

Comments
 (0)