From 4c5f1f3197e0bd2ebc69330028b34c0ed73d3bd1 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 25 Nov 2024 14:48:59 +0000 Subject: [PATCH] feat(bazel): make RBE platform compatible with Bazel 6 This makes the RBE platform compatible with Bazel 6 --- bazel/remote-execution/BUILD.bazel | 4 ++-- bazel/remote-execution/cpp/BUILD.bazel | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bazel/remote-execution/BUILD.bazel b/bazel/remote-execution/BUILD.bazel index 7664356c1..e22fca517 100644 --- a/bazel/remote-execution/BUILD.bazel +++ b/bazel/remote-execution/BUILD.bazel @@ -5,8 +5,8 @@ package(default_visibility = ["//visibility:public"]) platform( name = "platform", 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 = { diff --git a/bazel/remote-execution/cpp/BUILD.bazel b/bazel/remote-execution/cpp/BUILD.bazel index a94de2526..43317c803 100644 --- a/bazel/remote-execution/cpp/BUILD.bazel +++ b/bazel/remote-execution/cpp/BUILD.bazel @@ -18,13 +18,13 @@ cc_toolchain_suite( 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 = ":cc_compiler_k8", toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",