From e66b6bc868055f92a35ae0784a11ce87ec936c4d Mon Sep 17 00:00:00 2001 From: misterg Date: Tue, 8 Aug 2017 15:41:44 -0400 Subject: WIP, win testing --- BUILD.bazel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BUILD.bazel') diff --git a/BUILD.bazel b/BUILD.bazel index 97315042..35123b84 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -94,10 +94,10 @@ cc_library( ], ), hdrs = GTEST_HDRS, - copts = ["-fexceptions"] + select( + copts = select( { - ":win": [], - "//conditions:default": ["-pthread"], + ":win": ["-DGTEST_ENABLE_CATCH_EXCEPTIONS_=1"], + "//conditions:default": ["-fexceptions","-pthread"], }, ), includes = [ -- cgit v1.2.3