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

Unified Diff: build/common.gypi

Issue 13936005: Enable C++11 mode for iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index d09d8ab5dd8ad14336901c314abc4d9446000e06..65213656e685c90438d307502867d1b8c84f70d2 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3982,6 +3982,9 @@
# but keying off (or setting) 'clang' isn't valid for iOS as it
# also seems to mean using the custom build of clang.
+ # TODO(stuartmorgan): switch to c++0x (see TODOs in the clang
+ # section above).
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',
# Don't use -Wc++0x-extensions, which Xcode 4 enables by default
# when building with clang. This warning is triggered when the
# override keyword is used via the OVERRIDE macro from
@@ -3999,9 +4002,9 @@
'-Wno-unused-function',
# See comments on this flag higher up in this file.
'-Wno-unnamed-type-template-args',
- # This (rightfully) complains about 'override', which we use
- # heavily.
- '-Wno-c++11-extensions',
+ # Match OS X clang C++11 warning settings.
+ '-Wno-c++11-narrowing',
+ '-Wno-reserved-user-defined-literal',
],
},
'target_conditions': [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698