diff options
author | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 23:23:29 +0000 |
---|---|---|
committer | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 23:23:29 +0000 |
commit | d5d593a7612d84a49698c73c52ef445b76a367f0 (patch) | |
tree | bfd4876d4e3ea3d4108a1a0f63e888b31ff444c1 | |
parent | 27bb7288b55da432ff5b1bd3d86b6c7d99da5475 (diff) | |
download | chromium_src-d5d593a7612d84a49698c73c52ef445b76a367f0.zip chromium_src-d5d593a7612d84a49698c73c52ef445b76a367f0.tar.gz chromium_src-d5d593a7612d84a49698c73c52ef445b76a367f0.tar.bz2 |
Allow overriding debug optimization level on mac.
Review URL: http://codereview.chromium.org/178026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24834 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/common.gypi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi index 8a2c3c3..a574b2a 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -174,7 +174,8 @@ }, 'target_defaults': { 'variables': { - 'mac_release_optimization%': '3' # Use -O3 unless overridden + 'mac_release_optimization%': '3', # Use -O3 unless overridden + 'mac_debug_optimization%': '0' # Use -O0 unless overridden }, 'conditions': [ ['branding=="Chrome"', { @@ -237,7 +238,7 @@ 'Debug': { 'xcode_settings': { 'COPY_PHASE_STRIP': 'NO', - 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 + 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', }, 'conditions': [ [ 'OS=="win"', { |