Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index 1654be2786301d8c6aee788a5912536d7e44c594..7250579d27c123d40697647f38605ad34ce5683e 100644 |
--- a/build/standalone.gypi |
+++ b/build/standalone.gypi |
@@ -412,8 +412,25 @@ |
# things when their commandline changes). Nothing should ever read this |
# define. |
'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'], |
- 'cflags+': [ |
- '-Wno-format-pedantic', |
+ 'conditions': [ |
+ ['host_clang==1', { |
+ 'target_conditions': [ |
+ ['_toolset=="host"', { |
+ 'cflags+': [ |
+ '-Wno-format-pedantic', |
+ ], |
+ }], |
+ ], |
+ }], |
+ ['clang==1', { |
+ 'target_conditions': [ |
+ ['_toolset=="target"', { |
+ 'cflags+': [ |
+ '-Wno-format-pedantic', |
+ ], |
+ }], |
+ ], |
+ }], |
], |
}], |
], |