Revert 73304 (broke clang/linux) - Use early expansion for debug_optimize and release_optimize
This fixes a bug when these flags are not overriden from ~/.gyp/include.gypi
which is the way they should be set for Valgrind builds
(see http://dev.chromium.org/developers/how-tos/using-valgrind )
BUG=70107
TEST=gclient runhooks --force && grep "\-O" base/base.target.mk
Review URL: http://codereview.chromium.org/6267004
[email protected]
Review URL: http://codereview.chromium.org/6334026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73329 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index e0c5103..46059bd 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -978,7 +978,7 @@
'_DEBUG',
],
'cflags': [
- '-O<(debug_optimize)',
+ '-O>(debug_optimize)',
'-g',
],
},
@@ -994,7 +994,7 @@
'no_gc_sections%': 0,
},
'cflags': [
- '-O<(release_optimize)',
+ '-O>(release_optimize)',
# Don't emit the GCC version ident directives, they just end up
# in the .comment section taking up binary size.
'-fno-ident',