diff options
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | build/common.gypi | 7 | ||||
-rw-r--r-- | build/temp_gyp/v8.gyp | 6 |
3 files changed, 11 insertions, 4 deletions
@@ -26,7 +26,7 @@ deps = { # TODO(mark): Remove once this has moved into depot_tools. "src/tools/gyp": - "http://gyp.googlecode.com/svn/trunk@426", + "http://gyp.googlecode.com/svn/trunk@428", "src/v8": "http://v8.googlecode.com/svn/trunk@1682", 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': { |