summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/common.gypi5
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',