aboutsummaryrefslogtreecommitdiff
path: root/BUILD.bazel
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-04-26 13:09:24 -0400
committerDerek Mauro <dmauro@google.com>2021-04-26 14:07:25 -0400
commit252ce9c52d304659eff6be558209c811b7191963 (patch)
treecd508af842a62ea12121b077a795ff60ebe865e3 /BUILD.bazel
parent11da093e0477185dbd78abaaa9f99db15be498d0 (diff)
downloadgoogletest-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.bazel10
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"],
}),