diff options
| author | yfriedman <yfriedman@chromium.org> | 2016-01-27 10:37:19 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-01-27 18:38:55 +0000 |
| commit | 4531a211c31e154e837f9a44716a0189f9287176 (patch) | |
| tree | 8bc535e6f1619999f4fda9df5f8b849fd26a4ba0 /build | |
| parent | 1a26c8220ac6bd396bddb4585ff9e8e2de448df2 (diff) | |
| download | chromium_src-4531a211c31e154e837f9a44716a0189f9287176.zip chromium_src-4531a211c31e154e837f9a44716a0189f9287176.tar.gz chromium_src-4531a211c31e154e837f9a44716a0189f9287176.tar.bz2 | |
Make unwind table inclusion configurable.
Adds a new gn flag exclude_unwind_tables that can be set via gn args.
BUG=580374
Review URL: https://codereview.chromium.org/1638343003
Cr-Commit-Position: refs/heads/master@{#371827}
Diffstat (limited to 'build')
| -rw-r--r-- | build/config/compiler/BUILD.gn | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 60954b3..cf7a288 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -70,6 +70,10 @@ declare_args() { # The patch is preapplied to the internal toolchain and hence all bots. msvs_xtree_patched = false } + + # Omit unwind support in official builds to save space. + # We can use breakpad for these builds. + exclude_unwind_tables = is_chrome_branded && is_official_build } # Apply the default logic for these values if they were not set explicitly. @@ -225,9 +229,7 @@ config("compiler") { } if (!is_nacl) { - # Omit unwind support in official builds to save space. - # We can use breakpad for these builds. - if (is_chrome_branded && is_official_build) { + if (exclude_unwind_tables) { cflags += [ "-fno-unwind-tables", "-fno-asynchronous-unwind-tables", |
