Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-02-05 17:24:14 +0300
committerAnna Henningsen <anna@addaleax.net>2020-02-08 19:12:30 +0300
commit375c7649ec8a67aaf5524df762f221168716a523 (patch)
tree52ab7d967f94dd2d33728397b6fe6423fb4f2652 /node.gypi
parent7cbec42178ca2919c045f1120e2318d3ceaea658 (diff)
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 'node.gypi')
-rw-r--r--node.gypi10
1 files changed, 10 insertions, 0 deletions
diff --git a/node.gypi b/node.gypi
index a83c63e23da..87bcb37fc7f 100644
--- a/node.gypi
+++ b/node.gypi
@@ -271,6 +271,16 @@
],
},
}],
+ [ 'debug_node=="true"', {
+ 'cflags!': [ '-O3' ],
+ 'cflags': [ '-g', '-O0' ],
+ 'defines': [ 'DEBUG' ],
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [
+ '-g', '-O0'
+ ],
+ },
+ }],
[ 'coverage=="true" and node_shared=="false" and OS in "mac freebsd linux"', {
'cflags!': [ '-O3' ],
'ldflags': [ '--coverage',