Index: third_party/gtest/gtest.gyp |
diff --git a/third_party/gtest/gtest.gyp b/third_party/gtest/gtest.gyp |
index baab5e1fba76928d496be5fe3112a05d0b8a3e91..022010dd2d53b1e81191ed0057ffd47081d3061a 100644 |
--- a/third_party/gtest/gtest.gyp |
+++ b/third_party/gtest/gtest.gyp |
@@ -53,6 +53,17 @@ |
'sources!': [ |
'gtest/src/gtest-all.cc', |
], |
+ |
+ # gtest relies heavily on objects with static storage duration. |
+ 'xcode_settings': { |
+ 'WARNING_CFLAGS!': [ |
+ '-Wexit-time-destructors', |
+ ], |
+ }, |
+ 'cflags!': [ |
+ '-Wexit-time-destructors', |
+ ], |
+ |
'direct_dependent_settings': { |
'include_dirs': [ |
'gtest/include', |