Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1356)

Unified Diff: testing/gtest.gyp

Issue 522020: clang support (Closed)
Patch Set: lgtm Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/browser/zygote_main_linux.cc ('K') | « skia/skia.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/gtest.gyp
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index e813b497930cb9dc8469a2308d89d18726450a35..da95f42e5c612124d19a1f80ba22083a86e755cd 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': [
« chrome/browser/zygote_main_linux.cc ('K') | « skia/skia.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698