Index: build/config/clang/BUILD.gn |
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn |
index c2249f211a2aa036790edb71a8931366ae8b6591..8f20a8905d5bd64fa7907ca4e0929b911e06bc04 100644 |
--- a/build/config/clang/BUILD.gn |
+++ b/build/config/clang/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("clang.gni") |
+import("//build/config/chromecast_build.gni") |
config("find_bad_constructs") { |
if (clang_use_chrome_plugins) { |
@@ -49,6 +50,15 @@ config("find_bad_constructs") { |
"-Xclang", |
"check-implicit-copy-ctors", |
] |
+ |
+ if ((is_linux || is_android) && !is_chromeos && !is_chromecast) { |
+ cflags += [ |
+ "-Xclang", |
+ "-plugin-arg-find-bad-constructs", |
+ "-Xclang", |
+ "check-ipc", |
+ ] |
+ } |
} |
} |