1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/sanitizers/sanitizers.gni")
8 # How many symbols to include in the build. This affects the performance of
9 # the build since the symbols are large and dealing with them is slow.
10 # 2 means regular build with symbols.
11 # 1 means minimal symbols, usually enough for backtraces only.
13 # -1 means auto-set according to debug/release and platform.
17 # If it wasn't manually set, set to an appropriate default.
18 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level")
19 if (symbol_level == -1) {
20 # Linux is slowed by having symbols as part of the target binary, whereas
21 # Mac and Windows have them separate, so in Release Linux, default them off.
22 if (is_debug || !is_linux) {
24 } else if (is_asan || is_lsan || is_tsan || is_msan) {
25 # Sanitizers require symbols for filename suppressions to work.