summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-04-30 19:53:02 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-05-01 11:59:30 +0200
commit78f4b038f89349f1c033911178fb6b411831e99e (patch)
tree30fa062844c04471bffef57c8f29ff0b202dcf47 /common.gypi
parent0450ce7db22ab4b6f9b2119197389ed7d3eac8c3 (diff)
downloadandroid-node-v8-78f4b038f89349f1c033911178fb6b411831e99e.tar.gz
android-node-v8-78f4b038f89349f1c033911178fb6b411831e99e.tar.bz2
android-node-v8-78f4b038f89349f1c033911178fb6b411831e99e.zip
build: turn on debug-safe optimizations with -Og
The resulting binary is still easy to inspect in gdb but is not as dog slow. The 'parallel' test suite, although it takes several minutes to complete, now finishes without any tests timing out. PR-URL: https://github.com/iojs/io.js/pull/1569 Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.gypi b/common.gypi
index ea7779ee09..36a416115e 100644
--- a/common.gypi
+++ b/common.gypi
@@ -14,7 +14,7 @@
'node_tag%': '',
'uv_library%': 'static_library',
- # Default to -O0 for debug builds.
+ # Default to -Og for debug builds.
'v8_optimized_debug%': 0,
# Enable disassembler for `--print-code` v8 options
@@ -54,7 +54,7 @@
'v8_enable_handle_zapping%': 1,
},
'defines': [ 'DEBUG', '_DEBUG' ],
- 'cflags': [ '-g', '-O0' ],
+ 'cflags': [ '-g', '-Og' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',