Skip to content

Commit e94f814

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.
1 parent 7dc8eec commit e94f814

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)