| Index: build/config/mac/symbols.gni
|
| diff --git a/build/config/mac/symbols.gni b/build/config/mac/symbols.gni
|
| index 8cec6955dcebda06218744ff7abd49eb3ac36db1..2cb0b8f02354ae9c4d66247f72248502a8916124 100644
|
| --- a/build/config/mac/symbols.gni
|
| +++ b/build/config/mac/symbols.gni
|
| @@ -3,6 +3,7 @@
|
| # found in the LICENSE file.
|
|
|
| import("//build/config/chrome_build.gni")
|
| +import("//build/config/sanitizers/sanitizers.gni")
|
|
|
| # This file declares arguments and configs that control whether dSYM debug
|
| # info is produced and whether build products are stripped.
|
| @@ -13,14 +14,14 @@ declare_args() {
|
| # the //build/toolchain/mac/linker_driver.py. Enabling this will result in
|
| # all shared library, loadable module, and executable targets having a dSYM
|
| # generated.
|
| - enable_dsyms = is_official_build
|
| + enable_dsyms = (is_official_build && is_chrome_branded) || using_sanitizer
|
|
|
| # Strip symbols from linked targets by default. If this is enabled, the
|
| # //build/config/mac:strip_all config will be applied to all linked targets.
|
| - # If custom stripping paramters are required, remove that config from a
|
| + # If custom stripping parameters are required, remove that config from a
|
| # linked target and apply custom -Wcrl,strip flags. See
|
| # //build/toolchain/mac/linker_driver.py for more information.
|
| - enable_stripping = is_official_build
|
| + enable_stripping = is_official_build && is_chrome_branded
|
| }
|
|
|
| # Save unstripped copies of targets with a ".unstripped" suffix. This is
|
|
|