summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 18:39:36 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 18:39:36 +0000
commitf5986c409c99665eb6c8370270095bcb0de71917 (patch)
treea6f89a828aed4766d6ef3bfd4cf8f11594a797bb /build
parent2ce57c782597859abf4ae85dfe0164610df49e7a (diff)
downloadchromium_src-f5986c409c99665eb6c8370270095bcb0de71917.zip
chromium_src-f5986c409c99665eb6c8370270095bcb0de71917.tar.gz
chromium_src-f5986c409c99665eb6c8370270095bcb0de71917.tar.bz2
linux: set -fvisiblility-inlines-hidden when building
This matches the Mac and shaves a surprising 300kb off the binary. Review URL: http://codereview.chromium.org/402003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 4652db4..6a703ab 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -508,6 +508,9 @@
'cflags_cc': [
'-fno-rtti',
'-fno-threadsafe-statics',
+ # Make inline functions have hidden visiblity by default.
+ # Surprisingly, not covered by -fvisibility=hidden.
+ '-fvisibility-inlines-hidden',
],
'ldflags': [
'-pthread',