mirror of
https://github.com/google/googletest.git
synced 2025-12-07 01:06:50 +08:00
Merge ab94ddbd0e11403ecc7f60dc737fd7cb4037acfa into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
80a54b1060
13
BUILD.bazel
13
BUILD.bazel
@ -58,6 +58,16 @@ config_setting(
|
||||
constraint_values = ["@platforms//os:openbsd"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "emscripten_without_threads",
|
||||
constraint_values = [
|
||||
"@platforms//os:emscripten",
|
||||
],
|
||||
values = {
|
||||
"features": "-use_pthreads",
|
||||
},
|
||||
)
|
||||
|
||||
# NOTE: Fuchsia is not an officially supported platform.
|
||||
config_setting(
|
||||
name = "fuchsia",
|
||||
@ -113,10 +123,12 @@ cc_library(
|
||||
copts = select({
|
||||
":qnx": [],
|
||||
":windows": [],
|
||||
":emscripten_without_threads": [],
|
||||
"//conditions:default": ["-pthread"],
|
||||
}),
|
||||
defines = select({
|
||||
":has_absl": ["GTEST_HAS_ABSL=1"],
|
||||
":emscripten_without_threads": ["GTEST_HAS_PTHREAD=0"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
features = select({
|
||||
@ -140,6 +152,7 @@ cc_library(
|
||||
"-lm",
|
||||
"-pthread",
|
||||
],
|
||||
":emscripten_without_threads": [],
|
||||
"//conditions:default": ["-pthread"],
|
||||
}),
|
||||
deps = select({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user