Googletest export

Fix iOS logging issues in tests

PiperOrigin-RevId: 370484087
This commit is contained in:
Abseil Team
2021-04-26 13:09:24 -04:00
committed by Derek Mauro
parent 11da093e04
commit 252ce9c52d
2 changed files with 21 additions and 1 deletions

View File

@@ -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"],
}),