Index: testing/gtest.gyp |
diff --git a/testing/gtest.gyp b/testing/gtest.gyp |
index 517bd06e4c5f480da72293c469eba0aaa076be3f..486f3e774d6de9cf600e0b61c6cfac95b5a69abc 100644 |
--- a/testing/gtest.gyp |
+++ b/testing/gtest.gyp |
@@ -50,6 +50,16 @@ |
'dependencies': [ |
'gtest_prod', |
], |
+ 'defines': [ |
+ # In order to allow regex matches in gtest to be shared between Windows |
+ # and other systems, we tell gtest to always use it's internal engine. |
+ 'GTEST_HAS_POSIX_RE=0', |
+ ], |
+ 'all_dependent_settings': { |
+ 'defines': [ |
+ 'GTEST_HAS_POSIX_RE=0', |
+ ], |
+ }, |
'conditions': [ |
['OS == "mac" or OS == "ios"', { |
'sources': [ |