Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index fe4ecbc0edbf08fe8e7bb628300a5bd9b281fb3b..d2e620108a6fa77f039d6e6449931ad0d819ad8a 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1526,8 +1526,27 @@ |
'grit_defines': ['-D', 'use_concatenated_impulse_responses'], |
}], |
['clang_use_chrome_plugins==1 and OS!="win"', { |
- 'clang_chrome_plugins_flags': [ |
- '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
+ 'variables': { |
+ 'clang_chrome_plugins_flags': [ |
+ '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
+ ], |
+ }, |
+ 'conditions': [ |
+ ['OS=="linux"', { |
+ 'clang_chrome_plugins_flags': [ |
+ '<@(clang_chrome_plugins_flags)' |
+ ], |
+ }, { |
+ # TODO(rsleevi): http://crbug.com/115047 - This warning is only |
+ # enabled for Linux for now. Disable everywhere else. |
+ 'clang_chrome_plugins_flags': [ |
+ '<@(clang_chrome_plugins_flags)', |
+ '-Xclang', |
+ '-plugin-arg-find-bad-constructs', |
+ '-Xclang', |
+ 'skip-virtuals-in-implementations', |
+ ], |
+ }] |
Ryan Sleevi
2013/05/01 00:14:56
Previously reviewed on https://codereview.chromium
|
], |
}], |