diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 20:04:18 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 20:04:18 +0000 |
commit | c902f2cba91c750f30fc2ebcc80adbc739ac428c (patch) | |
tree | b8b4e362a1d6cf75b0fa8451d21afc4e8d7d889e /build | |
parent | bbe192b6e32035bae275f798bd495d136a1a1d68 (diff) | |
download | chromium_src-c902f2cba91c750f30fc2ebcc80adbc739ac428c.zip chromium_src-c902f2cba91c750f30fc2ebcc80adbc739ac428c.tar.gz chromium_src-c902f2cba91c750f30fc2ebcc80adbc739ac428c.tar.bz2 |
linux: pass -Wl,-O1 to the linker
This produced a ~7% startup performance gain in my local tests,
with no extra binary size cost(!?).
I'll watch the perf bots after commit to verify.
Review URL: http://codereview.chromium.org/3093009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 3026274..13dea60 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -947,6 +947,11 @@ '-fdata-sections', '-ffunction-sections', ], + 'ldflags': [ + # Specifically tell the linker to perform optimizations. + # See http://lwn.net/Articles/192624/ . + '-Wl,-O1', + ], 'conditions' : [ ['no_gc_sections==0', { 'ldflags': [ |