summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-23 23:20:46 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-23 23:20:46 +0000
commit6d4327bf6b51d5187daff556c7da67949fd4f262 (patch)
treed02cf37ebfe072697a3092d463c591af9766c7b0 /build/common.gypi
parentdedbb592f290fbbbfdc5a430c844bfd226f85ff4 (diff)
downloadchromium_src-6d4327bf6b51d5187daff556c7da67949fd4f262.zip
chromium_src-6d4327bf6b51d5187daff556c7da67949fd4f262.tar.gz
chromium_src-6d4327bf6b51d5187daff556c7da67949fd4f262.tar.bz2
Turn on C++11 when building with gcc4.8+
Revert with prejudice (after filing bugs / pinging me ) if this regresses perf or similar. BUG=377668 R=ajwong@chromium.org TBR=brettw Review URL: https://codereview.chromium.org/304453005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi28
1 files changed, 27 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi
index fc69e1f..4e0c35a 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -4136,7 +4136,33 @@
'ldflags': [
'-Wl,--disable-new-dtags',
],
- }]
+ }],
+ ['gcc_version>=48', {
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'cflags_cc': [
+ '-std=gnu++11',
+ # See comment for -Wno-c++11-narrowing.
+ '-Wno-narrowing',
+ # TODO(thakis): Remove, http://crbug.com/263960
+ '-Wno-literal-suffix',
+ ],
+ }],
+ ],
+ }],
+ ['host_gcc_version>=48', {
+ 'target_conditions': [
+ ['_toolset=="host"', {
+ 'cflags_cc': [
+ '-std=gnu++11',
+ # See comment for -Wno-c++11-narrowing.
+ '-Wno-narrowing',
+ # TODO(thakis): Remove, http://crbug.com/263960
+ '-Wno-literal-suffix',
+ ],
+ }],
+ ],
+ }],
],
},
}],