summaryrefslogtreecommitdiffstats
path: root/testing/gtest.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gtest.gyp')
-rw-r--r--testing/gtest.gyp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index e813b49..da95f42 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -79,6 +79,20 @@
],
},
}],
+ ['clang==1', {
+ # We want gtest features that use tr1::tuple, but clang currently
+ # doesn't support the variadic templates used by libstdc++'s
+ # implementation. gtest supports this scenario by providing its
+ # own implementation but we must opt in to it.
+ 'defines': [
+ 'GTEST_USE_OWN_TR1_TUPLE=1',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'GTEST_USE_OWN_TR1_TUPLE=1',
+ ],
+ },
+ }],
],
'direct_dependent_settings': {
'defines': [