summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 18:29:53 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 18:29:53 +0000
commitd8cc3a679233604df94571b882ac912614cb2bbe (patch)
treea468c443b0c3828fb02dde248e08d7f7fb7970c0 /build
parent8f165b87f4b917cc92e6fc0c7968da216e2210b3 (diff)
downloadchromium_src-d8cc3a679233604df94571b882ac912614cb2bbe.zip
chromium_src-d8cc3a679233604df94571b882ac912614cb2bbe.tar.gz
chromium_src-d8cc3a679233604df94571b882ac912614cb2bbe.tar.bz2
Linux cflag changes:
* Use -fno-rtti only for C++ V8 compilation. * Move -f{data,function}-sections (for Release) to build/common.gypi. * Add -fno-ident (per deanm). Review URL: http://codereview.chromium.org/62153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi7
-rw-r--r--build/temp_gyp/v8.gyp6
2 files changed, 10 insertions, 3 deletions
diff --git a/build/common.gypi b/build/common.gypi
index a2d9f2b..93565f3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -228,6 +228,13 @@
'Release': {
'cflags': [
'-O2',
+ # Don't emit the GCC version ident directives, they just end up
+ # in the .comment section taking up binary size.
+ '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
],
},
},
diff --git a/build/temp_gyp/v8.gyp b/build/temp_gyp/v8.gyp
index 2a92aeb..daebcc3 100644
--- a/build/temp_gyp/v8.gyp
+++ b/build/temp_gyp/v8.gyp
@@ -267,12 +267,12 @@
'-O2',
],
'cflags': [
- '-fno-rtti',
- '-fdata-sections',
- '-ffunction-sections',
'-fomit-frame-pointer',
'-O3',
],
+ 'cflags_cc': [
+ '-fno-rtti',
+ ],
}],
['OS=="win"', {
'msvs_settings': {