Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 74836e7ab5931378d7b5a7d0853e031a1ba6e1aa..c9f2e4d9b906aa0e174f22f8e5a391260ff322f1 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -2238,6 +2238,11 @@ |
# no need to load it dynamically. |
'clang_dynlib_flags%': '', |
}], |
+ ['(OS=="android" or OS=="linux") and chromecast==0 and chromeos==0', { |
+ 'clang_plugin_check_ipc_arg': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc', |
+ }, { |
+ 'clang_plugin_check_ipc_arg': '', |
+ }], |
], |
'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates ' |
'-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion ' |
@@ -2246,7 +2251,7 @@ |
# If you change these, also change build/config/clang/BUILD.gn. |
'clang_chrome_plugins_flags%': |
'<(clang_dynlib_flags)' |
- '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)', |
+ '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args) <(clang_plugin_check_ipc_arg)', |
}], |
['asan==1 or msan==1 or lsan==1 or tsan==1', { |
'clang%': 1, |