summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorbcoe <bencoe@google.com>2019-12-01 12:55:54 -0800
committerBenjamin Coe <bencoe@google.com>2019-12-05 15:46:55 -0800
commitbfd9de63c9521a7d26ab27f87de386434bdf649b (patch)
tree3c8c2ee89bc3a96f45cfbd0d2941c4caf6432ae7 /node.gyp
parent651c43082698ba3bfa4f2417944719f771c09f04 (diff)
downloadandroid-node-v8-bfd9de63c9521a7d26ab27f87de386434bdf649b.tar.gz
android-node-v8-bfd9de63c9521a7d26ab27f87de386434bdf649b.tar.bz2
android-node-v8-bfd9de63c9521a7d26ab27f87de386434bdf649b.zip
build: remove (almost) unused macros/constants
Macros, like CHECK, cause issues for tracking coverage because they modify the source before it's placed in V8. Upon investigation it seemed that we only used this functionality in two places: internal/vm/module.js, and internal/async_hooks.js (in comments). Given this, it seemed to make more sense to move CHECK to JavaScript, and retire a mostly unused build step. PR-URL: https://github.com/nodejs/node/pull/30755 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp14
1 files changed, 1 insertions, 13 deletions
diff --git a/node.gyp b/node.gyp
index 8becce9062..0a6bbd6100 100644
--- a/node.gyp
+++ b/node.gyp
@@ -892,23 +892,11 @@
# Put the code first so it's a dependency and can be used for invocation.
'tools/js2c.py',
'<@(library_files)',
- 'config.gypi',
- 'tools/js2c_macros/check_macros.py'
+ 'config.gypi'
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
],
- 'conditions': [
- [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
- 'inputs': [ 'tools/js2c_macros/notrace_macros.py' ]
- }],
- [ 'node_debug_lib=="false"', {
- 'inputs': [ 'tools/js2c_macros/nodcheck_macros.py' ]
- }],
- [ 'node_debug_lib=="true"', {
- 'inputs': [ 'tools/js2c_macros/dcheck_macros.py' ]
- }]
- ],
'action': [
'python', '<@(_inputs)',
'--target', '<@(_outputs)',