diff options
author | Abseil Team <absl-team@google.com> | 2021-04-26 17:09:24 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2021-04-26 18:07:25 (GMT) |
commit | 252ce9c52d304659eff6be558209c811b7191963 (patch) | |
tree | cd508af842a62ea12121b077a795ff60ebe865e3 /BUILD.bazel | |
parent | 11da093e0477185dbd78abaaa9f99db15be498d0 (diff) | |
download | googletest-252ce9c52d304659eff6be558209c811b7191963.zip googletest-252ce9c52d304659eff6be558209c811b7191963.tar.gz googletest-252ce9c52d304659eff6be558209c811b7191963.tar.bz2 |
Googletest export
Fix iOS logging issues in tests
PiperOrigin-RevId: 370484087
Diffstat (limited to 'BUILD.bazel')
-rw-r--r-- | BUILD.bazel | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 965c518..14661b6 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -56,6 +56,12 @@ config_setting( values = {"define": "absl=1"}, ) +config_setting( + name = "ios", + values = {"apple_platform_type": "ios"}, + visibility = [":__subpackages__"], +) + # Library that defines the FRIEND_TEST macro. cc_library( name = "gtest_prod", @@ -86,6 +92,10 @@ cc_library( "googlemock/include/gmock/*.h", ]), copts = select({ + ":ios": [ + "-xobjective-c++", + "-pthread", + ], ":windows": [], "//conditions:default": ["-pthread"], }), |