diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 11:41:01 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 11:41:01 +0000 |
commit | 740e2de647cb09332ef0f9c767b79b640d35cc7f (patch) | |
tree | e83b6361c2c7aa62433062ca37c77b2eebbe601c /build | |
parent | 9ec8db0fa5c9e8e449c2552154424535ae20f789 (diff) | |
download | chromium_src-740e2de647cb09332ef0f9c767b79b640d35cc7f.zip chromium_src-740e2de647cb09332ef0f9c767b79b640d35cc7f.tar.gz chromium_src-740e2de647cb09332ef0f9c767b79b640d35cc7f.tar.bz2 |
Add way to override optimization level for release build.
Will be used with valgrind to speed up the bots more.
This was suggested during http://codereview.chromium.org/67199, finally need it.
Review URL: http://codereview.chromium.org/155817
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi index 2d0cf19..edcd4e4 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -326,8 +326,11 @@ ], }, 'Release': { + 'variables': { + 'release_optimize%': '2', + }, 'cflags': [ - '-O2', + '-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', |