| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c471c12 commit 4fe705f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,6 +107,12 @@ | |||
| 107 | 107 | default=None, | |
| 108 | 108 | help='build the Node.js part of the binary with debugging symbols') | |
| 109 | 109 | ||
| 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 | + | ||
| 110 | 116 | parser.add_argument('--dest-cpu', | |
| 111 | 117 | action='store', | |
| 112 | 118 | dest='dest_cpu', | |
@@ -1457,6 +1463,9 @@ def configure_node(o): | |||
| 1457 | 1463 | o['variables']['control_flow_guard'] = b(options.enable_cfg) | |
| 1458 | 1464 | o['variables']['node_use_amaro'] = b(not options.without_amaro) | |
| 1459 | 1465 | o['variables']['debug_node'] = b(options.debug_node) | |
| 1466 | + o['variables']['debug_symbols'] = b(options.debug_symbols) | ||
| 1467 | + if options.debug_symbols: | ||
| 1468 | + o['cflags'] += ['-g'] | ||
| 1460 | 1469 | o['default_configuration'] = 'Debug' if options.debug else 'Release' | |
| 1461 | 1470 | if options.error_on_warn and options.suppress_all_error_on_warn: | |
| 1462 | 1471 | raise Exception('--error_on_warn is incompatible with --suppress_all_error_on_warn.') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments