summaryrefslogtreecommitdiffstats
path: root/BUILD.bazel
diff options
context:
space:
mode:
authorLoo Rong Jie <loorongjie@gmail.com>2018-01-07 14:52:52 (GMT)
committerLoo Rong Jie <loorongjie@gmail.com>2018-01-09 00:29:44 (GMT)
commitcbd15d417e9a9b8dfbac4483d49b4e0c6664b940 (patch)
tree5b06d821076e7013cb62593fb22270916292ba3a /BUILD.bazel
parentc3bb0ee2a63279a803aaad956b9b26d74bf9e6e2 (diff)
downloadgoogletest-cbd15d417e9a9b8dfbac4483d49b4e0c6664b940.zip
googletest-cbd15d417e9a9b8dfbac4483d49b4e0c6664b940.tar.gz
googletest-cbd15d417e9a9b8dfbac4483d49b4e0c6664b940.tar.bz2
[Bazel] Detect Windows with cpu value x64_windows and x64_windows_msvcrefs/pull/1388/head
and x64_windows_msvc
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel13
1 files changed, 10 insertions, 3 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 922ce04..7d2e9d2 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -37,7 +37,12 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
config_setting(
- name = "win",
+ name = "windows",
+ values = { "cpu": "x64_windows" },
+)
+
+config_setting(
+ name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)
@@ -65,7 +70,8 @@ cc_library(
]),
copts = select(
{
- ":win": [],
+ ":windows": [],
+ ":windows_msvc": [],
"//conditions:default": ["-pthread"],
},
),
@@ -76,7 +82,8 @@ cc_library(
"googletest/include",
],
linkopts = select({
- ":win": [],
+ ":windows": [],
+ ":windows_msvc": [],
"//conditions:default": [
"-pthread",
],