Index: build/config/compiler/compiler.gni |
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni |
index d5db930dab419abdc41ceaf4e148f5a7239c759b..412945dd137126610662c61cabc97cc3286dd05a 100644 |
--- a/build/config/compiler/compiler.gni |
+++ b/build/config/compiler/compiler.gni |
@@ -2,6 +2,7 @@ |
# 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/sanitizers/sanitizers.gni") |
declare_args() { |
@@ -18,8 +19,9 @@ declare_args() { |
assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") |
if (symbol_level == -1) { |
# Linux is slowed by having symbols as part of the target binary, whereas |
- # Mac and Windows have them separate, so in Release Linux, default them off. |
- if (is_debug || !is_linux) { |
+ # Mac and Windows have them separate, so in Release Linux, default them off, |
+ # but keep them on for Official builds. |
+ if (!is_linux || (is_debug || is_official_build)) { |
symbol_level = 2 |
} else if (is_asan || is_lsan || is_tsan || is_msan) { |
# Sanitizers require symbols for filename suppressions to work. |