Skip to content

Commit d967dcd

Browse files
authored
Merge pull request #47 from brave/disable-opts
Disable opts for non official builds
2 parents 1b5b3d2 + b76bc1f commit d967dcd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
2+
index fff8488778d7fb667e7683ee882c43baa2d4e94f..0317a8b0bf3d97a1449ac199905f14261b701b2e 100644
3+
--- a/build/config/compiler/BUILD.gn
4+
+++ b/build/config/compiler/BUILD.gn
5+
@@ -1829,7 +1829,7 @@ config("default_optimization") {
6+
# The NaCl IRT is a special case and always wants its own config.
7+
# It gets optimized the same way regardless of the type of build.
8+
configs = [ "//build/config/nacl:irt_optimize" ]
9+
- } else if (is_debug) {
10+
+ } else if (is_debug || !is_official_build) {
11+
configs = [ ":no_optimize" ]
12+
} else if (optimize_for_fuzzing) {
13+
assert(!is_win, "Fuzzing optimize level not supported on Windows")

0 commit comments

Comments
 (0)