summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authormisterg <misterg@google.com>2017-08-08 19:32:30 (GMT)
committermisterg <misterg@google.com>2017-08-08 19:32:30 (GMT)
commitc75de0aa924da36f67de9a7f18d55fc0f6ba63e2 (patch)
treec97f5c535d1f385c651e2b11585056eab5262319 /googletest
parent8815087cfa124b8b7f6e991189ec50a6bd439c83 (diff)
downloadgoogletest-c75de0aa924da36f67de9a7f18d55fc0f6ba63e2.zip
googletest-c75de0aa924da36f67de9a7f18d55fc0f6ba63e2.tar.gz
googletest-c75de0aa924da36f67de9a7f18d55fc0f6ba63e2.tar.bz2
WIP, windows testing
Diffstat (limited to 'googletest')
-rw-r--r--googletest/test/BUILD.bazel12
1 files changed, 9 insertions, 3 deletions
diff --git a/googletest/test/BUILD.bazel b/googletest/test/BUILD.bazel
index 3281efb..3818ba4 100644
--- a/googletest/test/BUILD.bazel
+++ b/googletest/test/BUILD.bazel
@@ -118,7 +118,10 @@ cc_test(
name = "gtest-death-test_ex_catch_test",
size = "small",
srcs = ["gtest-death-test_ex_test.cc"],
- copts = ["-fexceptions"],
+ copts = select({
+ "//:win": [],
+ "//conditions:default": [""-fexceptions""],
+ }),
defines = ["GTEST_ENABLE_CATCH_EXCEPTIONS_=0"],
deps = ["//:gtest_ex"],
)
@@ -127,7 +130,10 @@ cc_test(
name = "gtest-death-test_ex_nocatch_test",
size = "small",
srcs = ["gtest-death-test_ex_test.cc"],
- copts = ["-fexceptions"],
- defines = ["GTEST_ENABLE_CATCH_EXCEPTIONS_=1"],
+ copts = select({
+ "//:win": [],
+ "//conditions:default": [""-fexceptions""],
+ }),
+ defines = ["GTEST_ENABLE_CATCH_EXCEPTIONS_=1"],
deps = ["//:gtest_ex"],
)