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

Unified Diff: gyp/common_conditions.gypi

Issue 361723002: Have Clang builders build in C++11 mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 6 years, 6 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 | « bench/MemoryBench.cpp ('k') | gyp/libwebp.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_conditions.gypi
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 17eeb78ec51368049bc9908676a34d1bb35ffb94..cfc6d32edc3e3af1d53e2a568c708850195024b9 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -474,9 +474,16 @@
],
}],
[ 'skia_clang_build', {
+ 'cflags_cc': [
+ # Build in C++11 mode to make sure we'll have an easy time switching.
+ '-std=c++11',
+ '-Wno-unknown-warning-option', # Allows unknown warnings.
+ '-Wno-deprecated', # From Qt, via debugger (older Clang).
+ '-Wno-deprecated-register', # From Qt, via debugger (newer Clang).
+ ],
'cflags': [
- # Extra warnings we like but that only Clang knows about.
- '-Wstring-conversion',
+ # Extra warnings we like but that only Clang knows about.
+ '-Wstring-conversion',
],
'cflags!': [
'-mfpmath=sse', # Clang doesn't need to be told this, and sometimes gets confused.
« no previous file with comments | « bench/MemoryBench.cpp ('k') | gyp/libwebp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698