Disable -Weverything on fuzzer builds
This is to prevent annoyances when a new version of the compiler
is rolled into OSS-fuzz. See discussion in crbug.com/904337#c57 .
Cannot use is_hermetic_clang as originally planned because
I forgot that it is false on Mac OS.
Bug: chromium:904337
Change-Id: I839ff702ce6af9254646917b90496efc63c6429a
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 7c1e56d..e7aabf0 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -21,7 +21,10 @@
"-Wall",
"-Wextra",
]
- if (is_clang) {
+
+ # Disable Weverything on fuzzers to avoid breakages when new versions of clang
+ # are rolled into OSS-fuzz.
+ if (is_clang && !is_fuzzer) {
cflags += [
"-Weverything",
"-Wno-c++98-compat-pedantic",