diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 18:43:42 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 18:43:42 +0000 |
commit | 64eba222ffdca4b58046f61ca6f83a9d395a6fb5 (patch) | |
tree | 348c980c52083cddbc3cea9dcf1498e03ecc5918 /build/common.gypi | |
parent | 2a27f307d8dac3564f1a0574abf56eb4f703e42a (diff) | |
download | chromium_src-64eba222ffdca4b58046f61ca6f83a9d395a6fb5.zip chromium_src-64eba222ffdca4b58046f61ca6f83a9d395a6fb5.tar.gz chromium_src-64eba222ffdca4b58046f61ca6f83a9d395a6fb5.tar.bz2 |
Add a variable that lets you override the optimization level for release builds (for valgrind -- to avoid inlining, etc.)
Review URL: http://codereview.chromium.org/155501
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20636 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 8b47f52..e3a2319 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -191,6 +191,10 @@ [ 'OS=="mac"', { 'xcode_settings': { 'DEAD_CODE_STRIPPING': 'YES', + 'conditions': [ + ['mac_release_optimization != "UNSET"', + {'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)'}], + ], } }], [ 'OS=="win" and msvs_use_common_release', { @@ -399,6 +403,9 @@ # with % in variables that are intended to be set to different # values in different targets, like this one. 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. + # Release defaults to the Xcode optimization default, this var + # lets you force the value. + 'mac_release_optimization%': 'UNSET' }, 'mac_bundle': 0, 'xcode_settings': { |