Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: tools/ipc_fuzzer/ipc_fuzzer.gni

Issue 1927303002: Conditionally set enable_ipc_fuzzer for GN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang only Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/ipc_fuzzer/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/ipc_fuzzer.gni
diff --git a/tools/ipc_fuzzer/ipc_fuzzer.gni b/tools/ipc_fuzzer/ipc_fuzzer.gni
index 1c7d8ca709920eda67651a1c29f2d8abee558f94..f4f41ac523ed4d226d77639fdf513820d32e4b28 100644
--- a/tools/ipc_fuzzer/ipc_fuzzer.gni
+++ b/tools/ipc_fuzzer/ipc_fuzzer.gni
@@ -2,7 +2,15 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/chrome_build.gni")
+import("//build/config/chromecast_build.gni")
+import("//build/config/sanitizers/sanitizers.gni")
+
declare_args() {
- # Don't build IPC fuzzer by default.
- enable_ipc_fuzzer = false
+ # Build IPC fuzzer by default if it's a supported configuration. For
+ # sanitizer builds, this needs to be enabled explicitly as they can be slow
+ # (especially MSan).
+ enable_ipc_fuzzer =
+ is_clang && !is_component_build && !is_official_build && !is_chromecast &&
+ !using_sanitizer && (is_linux || is_mac || is_win)
}
« no previous file with comments | « tools/ipc_fuzzer/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698