summaryrefslogtreecommitdiffstats
path: root/BUILD.bazel
diff options
context:
space:
mode:
authorManuel Binna <manuel@binna.de>2021-06-25 04:35:18 (GMT)
committerManuel Binna <manuel@binna.de>2021-06-26 11:26:20 (GMT)
commit4281d2149c4ff791ff346778558a9d606554982d (patch)
tree8b95c4bb4e81760445c7bef1f8e1990ee60bf682 /BUILD.bazel
parent355d57d90d9744c41ac7c99f1e960778f1c63040 (diff)
downloadgoogletest-4281d2149c4ff791ff346778558a9d606554982d.zip
googletest-4281d2149c4ff791ff346778558a9d606554982d.tar.gz
googletest-4281d2149c4ff791ff346778558a9d606554982d.tar.bz2
Don't link pthread on QNXrefs/pull/3465/head
On QNX, pthread is part of libc [1]. There's no separate pthread library to link. [1] https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.lib_ref/topic/p/pthread_create.html
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel7
1 files changed, 7 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 965c518..3c9a228 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -39,6 +39,11 @@ licenses(["notice"])
exports_files(["LICENSE"])
config_setting(
+ name = "qnx",
+ constraint_values = ["@platforms//os:qnx"],
+)
+
+config_setting(
name = "windows",
constraint_values = ["@platforms//os:windows"],
)
@@ -86,6 +91,7 @@ cc_library(
"googlemock/include/gmock/*.h",
]),
copts = select({
+ ":qnx": [],
":windows": [],
"//conditions:default": ["-pthread"],
}),
@@ -104,6 +110,7 @@ cc_library(
"googletest/include",
],
linkopts = select({
+ ":qnx": [],
":windows": [],
"//conditions:default": ["-pthread"],
}),