summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-02-05 15:24:14 +0100
committerAnna Henningsen <anna@addaleax.net>2020-02-08 17:12:30 +0100
commit375c7649ec8a67aaf5524df762f221168716a523 (patch)
tree52ab7d967f94dd2d33728397b6fe6423fb4f2652 /configure.py
parent7cbec42178ca2919c045f1120e2318d3ceaea658 (diff)
downloadnode-new-375c7649ec8a67aaf5524df762f221168716a523.tar.gz
build: add configure option to debug only Node.js part of the binary
Building Node.js with `--debug` takes a long time and generates binaries that can be hard to work with due to their size, in particular because debug builds of V8 are large. Sometimes, it’s sufficient to build the Node.js parts with native debugging options enabled. Add an option for that. PR-URL: https://github.com/nodejs/node/pull/31644 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index c5025c81eb..beb08df088 100755
--- a/configure.py
+++ b/configure.py
@@ -89,6 +89,11 @@ parser.add_option('--debug',
dest='debug',
help='also build debug build')
+parser.add_option('--debug-node',
+ action='store_true',
+ dest='debug_node',
+ help='build the Node.js part of the binary with debugging symbols')
+
parser.add_option('--dest-cpu',
action='store',
dest='dest_cpu',
@@ -975,6 +980,7 @@ def configure_node(o):
o['variables']['node_prefix'] = options.prefix
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_report'] = b(not options.without_report)
+ o['variables']['debug_node'] = b(options.debug_node)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()