Chromium Code Reviews| Index: build/config/mac/symbols.gni |
| diff --git a/build/config/mac/symbols.gni b/build/config/mac/symbols.gni |
| index 8cec6955dcebda06218744ff7abd49eb3ac36db1..4edb57af4189e98b62d38f93af070e4c65ecc850 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) || is_using_sanitizer |
|
Dirk Pranke
2016/08/10 01:59:53
assuming we don't actually want these generated fo
|
| # 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 |