summaryrefslogtreecommitdiffstats
path: root/BUILD.bazel
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-05-24 14:53:07 (GMT)
committerDerek Mauro <dmauro@google.com>2021-05-25 17:34:32 (GMT)
commitc0777e6565a5ab58db699de75cd122ef9b8de847 (patch)
tree0a783873914a0ce3fc973a179cf868f4d5200e0f /BUILD.bazel
parent9741c42200b66abc708ee6da269a29c8bd912cee (diff)
downloadgoogletest-c0777e6565a5ab58db699de75cd122ef9b8de847.zip
googletest-c0777e6565a5ab58db699de75cd122ef9b8de847.tar.gz
googletest-c0777e6565a5ab58db699de75cd122ef9b8de847.tar.bz2
Googletest export
Remove the dependency on Objective C++ in iOS builds. 252ce9c52d304659eff6be558209c811b7191963 introduced the use of NSTemporaryDirectory() on iOS, which requires Core Foundation, and Objective C++. This CL replaces NSTemporaryDirectory() with an equivalent solution (according to Apple's documentation at [1]) available to C/C++ code. Avoiding Objective C++ and Core Foundation makes it easier to integrate googletest in projects that can't use the supplied Bazel build files. [1] https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/RaceConditions.html#//apple_ref/doc/uid/TP40002585-SW10 PiperOrigin-RevId: 375474990
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel10
1 files changed, 0 insertions, 10 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 14661b6..965c518 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -56,12 +56,6 @@ 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",
@@ -92,10 +86,6 @@ cc_library(
"googlemock/include/gmock/*.h",
]),
copts = select({
- ":ios": [
- "-xobjective-c++",
- "-pthread",
- ],
":windows": [],
"//conditions:default": ["-pthread"],
}),