diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-26 22:14:01 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-26 22:14:01 +0000 |
commit | 22898f61163bcc6b2af131fa984e9fb5a0cfaa04 (patch) | |
tree | 10c38dd1662857c12b00f2a400b6bfe46df4affa /build | |
parent | 2d5b50819bfcb6c66f762d7bf9e51d59b169b3d5 (diff) | |
download | chromium_src-22898f61163bcc6b2af131fa984e9fb5a0cfaa04.zip chromium_src-22898f61163bcc6b2af131fa984e9fb5a0cfaa04.tar.gz chromium_src-22898f61163bcc6b2af131fa984e9fb5a0cfaa04.tar.bz2 |
Switch optimization cflag to late-resolve the debug_optimize and release_optimize vars.
This will allow lower-level targets to change their desired optimization level. In particular, the ffmpeg build requires this because it has problems compiling with -O0.
BUG=22307
TEST=none
Review URL: http://codereview.chromium.org/334018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi index 101fd46..b5e2279 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -579,7 +579,7 @@ '_DEBUG', ], 'cflags': [ - '-O<(debug_optimize)', + '-O>(debug_optimize)', '-g', # One can use '-gstabs' to enable building the debugging # information in STABS format for breakpad's dumpsyms. @@ -593,7 +593,7 @@ 'release_optimize%': '2', }, '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', |