summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 12:53:16 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 12:53:16 +0000
commit1bba09cc68b4f5335ecd335a4e52b74f221ef583 (patch)
treed3d7cbe9c9cfada1a901023b4c50245f559e5fe4 /testing
parentf3964daf023b2d10df1111248de367a0647d6392 (diff)
downloadchromium_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 'testing')
-rw-r--r--testing/gtest.gyp23
1 files changed, 22 insertions, 1 deletions
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index e9d15f5..581d37a 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -52,7 +52,28 @@
'gtest/include',
],
'conditions': [
- [ 'OS == "mac"', { 'sources': [ 'platform_test_mac.mm' ] } ],
+ ['OS == "mac"', {
+ 'sources': [
+ 'platform_test_mac.mm'
+ ],
+ }],
+ ['OS == "mac" or OS == "linux"', {
+ 'defines': [
+ # gtest isn't able to figure out when RTTI is disabled for gcc
+ # versions older than 4.3.2, and assumes it's enabled. Our Mac
+ # and Linux builds disable RTTI, and cannot guarantee that the
+ # compiler will be 4.3.2. or newer. The Mac, for example, uses
+ # 4.2.1 as that is the latest available on that platform. gtest
+ # must be instructed that RTTI is disabled here, and for any
+ # direct dependents that might include gtest headers.
+ 'GTEST_HAS_RTTI=0',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'GTEST_HAS_RTTI=0',
+ ],
+ },
+ }],
],
'direct_dependent_settings': {
'defines': [