Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1753)

Unified Diff: build/common.gypi

Issue 155501: Add a variable that forces the release mac builds to use -O1 instead of -Os f... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
===================================================================
--- build/common.gypi (revision 20618)
+++ build/common.gypi (working copy)
@@ -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': {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698