diff options
author | bcoe <bencoe@google.com> | 2019-12-01 12:55:54 -0800 |
---|---|---|
committer | Benjamin Coe <bencoe@google.com> | 2019-12-05 15:46:55 -0800 |
commit | bfd9de63c9521a7d26ab27f87de386434bdf649b (patch) | |
tree | 3c8c2ee89bc3a96f45cfbd0d2941c4caf6432ae7 /node.gyp | |
parent | 651c43082698ba3bfa4f2417944719f771c09f04 (diff) | |
download | android-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.gyp | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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)', |