summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:17:32 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:17:32 +0000
commit60b93eca4cec0e8712aed7f063e5d226c3a346db (patch)
tree5f818c9fc69d76f3cf0fb37fb3fcbfbc6b189cc8 /build
parent4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737 (diff)
downloadchromium_src-60b93eca4cec0e8712aed7f063e5d226c3a346db.zip
chromium_src-60b93eca4cec0e8712aed7f063e5d226c3a346db.tar.gz
chromium_src-60b93eca4cec0e8712aed7f063e5d226c3a346db.tar.bz2
linux: move asynchronous-unwind-tables flag to Release-only
This makes backtraces again include symbols in Debug builds. TEST=StackTrace.OutputToStream (in a Debug build; the test is already disabled in Release builds, exactly because this flag breaks the thing the test is testing.) Review URL: http://codereview.chromium.org/457006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi
index cb71023..997cd9e 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -495,11 +495,7 @@
'cflags': [
'<(werror)', # See note above about the werror variable.
'-pthread',
- # We don't use exceptions. By disabling exceptions
- # (and asynchronous-unwind-tables), we shave off 2.5mb from
- # our resulting binary by not including the eh_frame section.
'-fno-exceptions',
- '-fno-asynchronous-unwind-tables',
'-fvisibility=hidden',
'-Wall',
'-D_FILE_OFFSET_BITS=64',
@@ -612,6 +608,11 @@
# can be removed at link time with --gc-sections.
'-fdata-sections',
'-ffunction-sections',
+ # We don't use exceptions. The eh_frame section is used for those
+ # and for symbolizing backtraces. By passing this flag we drop
+ # the eh_frame section completely, we shaving off 2.5mb from
+ # our resulting binary.
+ '-fno-asynchronous-unwind-tables',
],
'ldflags': [
'-Wl,--gc-sections',