summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 17:47:51 +0000
committerdank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 17:47:51 +0000
commit1e819856c41438ebb82f25dee439ce93341b71b9 (patch)
tree52e7f0249c40ee9dcb021578d1bff3f40c77dd63 /build
parenteaf7672dac27275000a407c89178b4b2b7e66835 (diff)
downloadchromium_src-1e819856c41438ebb82f25dee439ce93341b71b9.zip
chromium_src-1e819856c41438ebb82f25dee439ce93341b71b9.tar.gz
chromium_src-1e819856c41438ebb82f25dee439ce93341b71b9.tar.bz2
Add a way to inject extra cflags in release builds.
(I intend to use this as a quickie way to add -g to Release builds so I can see symbols. Is there a better way?) Review URL: http://codereview.chromium.org/159621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index bd472e5..ebe9ad8 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -333,6 +333,7 @@
'Release': {
'variables': {
'release_optimize%': '2',
+ 'release_extra_cflags%': '',
},
'cflags': [
'-O<(release_optimize)',
@@ -343,6 +344,7 @@
# can be removed at link time with --gc-sections.
'-fdata-sections',
'-ffunction-sections',
+ '<(release_extra_cflags)',
],
},
},