Skip to content

Commit cd22e48

Browse files
authored
bazel: add config setting for NO_PTHREAD_MUTEX_HOOK (#3090)
1 parent 3fed883 commit cd22e48

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ COPTS = [
5353
}) + select({
5454
"//bazel/config:brpc_with_asan": ["-fsanitize=address"],
5555
"//conditions:default": [""],
56+
}) + select({
57+
"//bazel/config:brpc_with_no_pthread_mutex_hook": ["-DNO_PTHREAD_MUTEX_HOOK"],
58+
"//conditions:default": [""],
5659
})
5760

5861
LINKOPTS = [

bazel/config/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,10 @@ config_setting(
136136
define_values = {
137137
"with_bthread_tracer": "true",
138138
},
139+
)
140+
141+
config_setting(
142+
name = "brpc_with_no_pthread_mutex_hook",
143+
define_values = {"BRPC_WITH_NO_PTHREAD_MUTEX_HOOK": "true"},
144+
visibility = ["//visibility:public"],
139145
)

0 commit comments

Comments
 (0)