Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 4d8f0cedc23b7bce81f1a26092078b31aad477f3..1584926a007af9fc93e731138627d0597019cc1a 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1360,6 +1360,8 @@ config("optimize_no_wpo") { |
} else if (optimize_for_size) { |
# Favor size over speed. |
cflags = [ "-Os" ] + common_optimize_on_cflags |
+ } else if (optimize_for_fuzzing) { |
+ cflags = [ "-O1" ] + common_optimize_on_cflags |
} else { |
cflags = [ "-O2" ] + common_optimize_on_cflags |
} |
@@ -1416,6 +1418,8 @@ config("optimize_max") { |
"/wd4702", |
] |
} |
+ } else if (optimize_for_fuzzing) { |
+ cflags = [ "-O1" ] + common_optimize_on_cflags |
} else { |
cflags = [ "-O2" ] + common_optimize_on_cflags |
} |
@@ -1459,6 +1463,8 @@ config("optimize_speed") { |
"/wd4702", |
] |
} |
+ } else if (optimize_for_fuzzing) { |
+ cflags = [ "-O1" ] + common_optimize_on_cflags |
} else { |
cflags = [ "-O3" ] + common_optimize_on_cflags |
} |