Skip to content

Commit 78f4b03

Browse files
committed
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: #1569 Reviewed-By: Johan Bergström <[email protected]>
1 parent 0450ce7 commit 78f4b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.gypi

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'node_tag%': '',
1515
'uv_library%': 'static_library',
1616

17-
# Default to -O0 for debug builds.
17+
# Default to -Og for debug builds.
1818
'v8_optimized_debug%': 0,
1919

2020
# Enable disassembler for `--print-code` v8 options
@@ -54,7 +54,7 @@
5454
'v8_enable_handle_zapping%': 1,
5555
},
5656
'defines': [ 'DEBUG', '_DEBUG' ],
57-
'cflags': [ '-g', '-O0' ],
57+
'cflags': [ '-g', '-Og' ],
5858
'conditions': [
5959
['target_arch=="x64"', {
6060
'msvs_configuration_platform': 'x64',

0 commit comments

Comments
 (0)