Skip to content

Commit

Permalink
Replace references to @bazel_tools//platforms with @platforms//.
Browse files Browse the repository at this point in the history
The former has been deprecated and will break by
--incompatible_use_platforms_repo_for_constraints, as announced in
bazelbuild/bazel#8622.

Fixes bazel-contrib#354.
  • Loading branch information
Attila Oláh authored and jsharpe committed Nov 4, 2020
1 parent ee4a18b commit 74d9d89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ sh_test(
toolchain(
name = "built_ninja_toolchain_osx",
exec_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_ninja",
toolchain_type = "@rules_foreign_cc//tools/build_defs:ninja_toolchain",
Expand All @@ -98,8 +98,8 @@ toolchain(
toolchain(
name = "built_ninja_toolchain_linux",
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_ninja",
toolchain_type = "@rules_foreign_cc//tools/build_defs:ninja_toolchain",
Expand Down
4 changes: 2 additions & 2 deletions toolchains_examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ constraint_value(
platform(
name = "fancy_platform",
constraint_values = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
":fancy_constraint_value",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ ToolchainMapping = provider(
TOOLCHAIN_MAPPINGS = [
ToolchainMapping(
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
file = "@rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains/impl:linux_commands.bzl",
),
ToolchainMapping(
exec_compatible_with = [
"@bazel_tools//platforms:windows",
"@bazel_tools//platforms:x86_64",
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
file = "@rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains/impl:windows_commands.bzl",
),
ToolchainMapping(
exec_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
file = "@rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains/impl:osx_commands.bzl",
),
Expand Down

0 comments on commit 74d9d89

Please sign in to comment.