File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 107107 default = None ,
108108 help = 'build the Node.js part of the binary with debugging symbols' )
109109
110+ parser .add_argument ('--debug-symbols' ,
111+ action = 'store_true' ,
112+ dest = 'debug_symbols' ,
113+ default = None ,
114+ help = 'add debugging symbols to release builds (adds -g without enabling DCHECKs)' )
115+
110116parser .add_argument ('--dest-cpu' ,
111117 action = 'store' ,
112118 dest = 'dest_cpu' ,
@@ -1560,6 +1566,9 @@ def configure_node(o):
15601566 o ['variables' ]['control_flow_guard' ] = b (options .enable_cfg )
15611567 o ['variables' ]['node_use_amaro' ] = b (not options .without_amaro )
15621568 o ['variables' ]['debug_node' ] = b (options .debug_node )
1569+ o ['variables' ]['debug_symbols' ] = b (options .debug_symbols )
1570+ if options .debug_symbols :
1571+ o ['cflags' ] += ['-g' ]
15631572 o ['variables' ]['build_type%' ] = 'Debug' if options .debug else 'Release'
15641573 o ['default_configuration' ] = 'Debug' if options .debug else 'Release'
15651574 if options .error_on_warn and options .suppress_all_error_on_warn :
You can’t perform that action at this time.
0 commit comments