summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi30
1 files changed, 24 insertions, 6 deletions
diff --git a/build/common.gypi b/build/common.gypi
index e8c7b16..333a500 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -4315,10 +4315,6 @@
}]]
}],
['clang==1', {
- 'cflags': [
- # TODO(thakis): Remove, http://crbug.com/263960
- '-Wno-reserved-user-defined-literal',
- ],
'cflags_cc': [
# gnu++11 instead of c++11 is needed because some code uses
# typeof() (a GNU extension).
@@ -4327,6 +4323,12 @@
'-std=gnu++11',
],
}],
+ ['clang==1 and chromeos==1', {
+ 'cflags': [
+ # TODO(thakis): Remove, http://crbug.com/263960
+ '-Wno-reserved-user-defined-literal',
+ ],
+ }],
['clang==0 and host_clang==1', {
'target_conditions': [
['_toolset=="host"', {
@@ -4712,8 +4714,6 @@
'-std=gnu++11',
# See comment for -Wno-c++11-narrowing.
'-Wno-narrowing',
- # TODO(thakis): Remove, http://crbug.com/263960
- '-Wno-literal-suffix',
],
}],
],
@@ -4725,6 +4725,24 @@
'-std=gnu++11',
# See comment for -Wno-c++11-narrowing.
'-Wno-narrowing',
+ ],
+ }],
+ ],
+ }],
+ ['gcc_version>=47 and clang==0 and chromeos==1', {
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'cflags_cc': [
+ # TODO(thakis): Remove, http://crbug.com/263960
+ '-Wno-literal-suffix',
+ ],
+ }],
+ ],
+ }],
+ ['host_gcc_version>=47 and clang==0 and host_clang==0 and chromeos==1', {
+ 'target_conditions': [
+ ['_toolset=="host"', {
+ 'cflags_cc': [
# TODO(thakis): Remove, http://crbug.com/263960
'-Wno-literal-suffix',
],