| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 97b6b61 commit e6e25d6
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', | |
@@ -1560,6 +1566,9 @@ def configure_node(o): | |||
| 1560 | 1566 | o['variables']['control_flow_guard'] = b(options.enable_cfg) | |
| 1561 | 1567 | o['variables']['node_use_amaro'] = b(not options.without_amaro) | |
| 1562 | 1568 | 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'] | ||
| 1563 | 1572 | o['variables']['build_type%'] = 'Debug' if options.debug else 'Release' | |
| 1564 | 1573 | o['default_configuration'] = 'Debug' if options.debug else 'Release' | |
| 1565 | 1574 | if options.error_on_warn and options.suppress_all_error_on_warn: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments