diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 12:53:16 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 12:53:16 +0000 |
commit | 1bba09cc68b4f5335ecd335a4e52b74f221ef583 (patch) | |
tree | d3d7cbe9c9cfada1a901023b4c50245f559e5fe4 /build | |
parent | f3964daf023b2d10df1111248de367a0647d6392 (diff) | |
download | chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.zip chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.tar.gz chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.tar.bz2 |
Disable RTTI and C++ exceptions in the Mac build. Disable RTTI in the Linux
build, where C++ exceptions are already disabled.
BUG=19094 12248
TEST=Mac release-mode Google Chrome.app should shrink by about 6MB.
Mac disk image should shrink by about 1.5MB.
Linux binary and package should shrink too.
Review URL: http://codereview.chromium.org/165330
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/build/common.gypi b/build/common.gypi index d9d35dc..8ff4fb3 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -356,13 +356,14 @@ 'werror%': '-Werror', }, 'cflags': [ - '<(werror)', # See note above about the werror variable. - '-pthread', - '-fno-exceptions', - '-Wall', - '-D_FILE_OFFSET_BITS=64', + '<(werror)', # See note above about the werror variable. + '-pthread', + '-fno-exceptions', + '-Wall', + '-D_FILE_OFFSET_BITS=64', ], 'cflags_cc': [ + '-fno-rtti', '-fno-threadsafe-statics', ], 'ldflags': [ @@ -558,6 +559,8 @@ 'GCC_C_LANGUAGE_STANDARD': 'c99', 'GCC_CW_ASM_SYNTAX': 'NO', 'GCC_DYNAMIC_NO_PIC': 'NO', + 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', + 'GCC_ENABLE_CPP_RTTI': 'NO', 'GCC_ENABLE_PASCAL_STRINGS': 'NO', 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', |