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

guangmingchen 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 cd22e480 bazel: add config setting for NO_PTHREAD_MUTEX_HOOK (#3090)
cd22e480 is described below

commit cd22e4802ea406af74027998ee247edfd23d05c2
Author: fanbingxin <fanbingxin...@gmail.com>
AuthorDate: Mon Sep 15 20:25:37 2025 +0800

    bazel: add config setting for NO_PTHREAD_MUTEX_HOOK (#3090)
---
 BUILD.bazel              | 3 +++
 bazel/config/BUILD.bazel | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/BUILD.bazel b/BUILD.bazel
index b4f57d94..3cfe83b6 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -53,6 +53,9 @@ COPTS = [
 }) + select({
     "//bazel/config:brpc_with_asan": ["-fsanitize=address"],
     "//conditions:default": [""],
+}) + select({
+    "//bazel/config:brpc_with_no_pthread_mutex_hook": 
["-DNO_PTHREAD_MUTEX_HOOK"],
+    "//conditions:default": [""],
 })
 
 LINKOPTS = [
diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel
index 2c36be41..594dc513 100644
--- a/bazel/config/BUILD.bazel
+++ b/bazel/config/BUILD.bazel
@@ -136,4 +136,10 @@ config_setting(
     define_values = {
         "with_bthread_tracer": "true",
     },
+)
+
+config_setting(
+    name = "brpc_with_no_pthread_mutex_hook",
+    define_values = {"BRPC_WITH_NO_PTHREAD_MUTEX_HOOK": "true"},
+    visibility = ["//visibility:public"],
 )
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to