This is an automated email from the ASF dual-hosted git repository.

chenBright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 5420bd250 fix(bazel): use @bazel_tools//src/conditions:darwin in 
test/BUILD.bazel for Apple Silicon (#3764)
5420bd250 is described below

commit 5420bd250ccd19583837e53ee13b621f8b4ba741
Author: James Lamb <[email protected]>
AuthorDate: Sat Nov 21 19:13:21 2026 +1100

    fix(bazel): use @bazel_tools//src/conditions:darwin in test/BUILD.bazel for 
Apple Silicon (#3764)
    
    * fix(bazel): use @bazel_tools//src/conditions:darwin in test/BUILD.bazel
    
    Signed-off-by: James Lamb <[email protected]>
    
    * fix(bazel): use @platforms//os:macos constraint in //bazel/config:darwin
    
    Signed-off-by: James Lamb <[email protected]>
    
    ---------
    
    Signed-off-by: James Lamb <[email protected]>
---
 bazel/config/BUILD.bazel | 2 +-
 test/BUILD.bazel         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel
index be35f55bc..86c2be095 100644
--- a/bazel/config/BUILD.bazel
+++ b/bazel/config/BUILD.bazel
@@ -100,7 +100,7 @@ config_setting(
 
 config_setting(
     name = "darwin",
-    values = {"cpu": "darwin"},
+    constraint_values = ["@platforms//os:macos"],
     visibility = ["//:__subpkgs__"],
 )
 
diff --git a/test/BUILD.bazel b/test/BUILD.bazel
index c9f853e24..948635317 100644
--- a/test/BUILD.bazel
+++ b/test/BUILD.bazel
@@ -131,7 +131,7 @@ TEST_BUTIL_SOURCES = [
     "seqlock_unittest.cpp",
     "butil_unittest_main.cpp",
 ] + select({
-    "@bazel_tools//tools/osx:darwin_x86_64": [],
+    "@bazel_tools//src/conditions:darwin": [],
     "//conditions:default": [
         "test_file_util_linux.cc",
         "proc_maps_linux_unittest.cc",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to