0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/tools
Daniel Bevenius f645cc7318 tools: prevent js2c from running if nothing changed
This commit updates tools/js2c.py to touch the target output file
, <(SHARED_INTERMEDIATE_DIR)/node_javascript.cc, even if the content
has not changed. This is to "help" the build system so that it can
compare the inputs against the output to determine if the gyp action
should be run.

I believe the issue here is that if js2c.py is updated this can
cause the action to be run as the node_javascript.cc target would be
older than js2c.py. But when the target is run the timestamp for
node_javascript.cc will not be updated (because we have not changed
anything that would change the contents of the file) so the js2c.py
prerequisite will always be passed and the target always run.

Using the update in this commit one would have to touch/modify one of
the js files specified in the library_files list, config.gypi, or
tools/js2c.py for this action to be run again.

PR-URL: https://github.com/nodejs/node/pull/33844
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2020-06-15 06:05:08 +02:00
..
bootstrap
clang-format
code_cache tools: remove unused vector include in mkdcodecache 2020-06-15 06:02:30 +02:00
configure.d
doc doc: make globals Extends usage consistent 2020-06-08 21:25:26 -04:00
eslint-rules
gyp tools,gyp: add support for MSVC cross-compilation 2020-05-19 19:27:25 +01:00
icu build,win: add support for MSVC cross-compilation 2020-05-19 19:30:40 +01:00
inspector_protocol tools: fix redundant-move warning in inspector 2020-04-30 06:17:32 +02:00
macos-installer
msvs build: drop support for VS2017 2020-06-12 15:48:28 +02:00
node_modules tools: update ESLint to 7.2.0 2020-06-13 16:44:03 -04:00
node-lint-md-cli-rollup tools: update remark-preset-lint-node from 1.15.0 to 1.15.1 2020-06-06 05:47:36 -07:00
pip
rpm
snapshot
v8_gypfiles build: zlib build error on Windows on Arm 2020-05-30 04:17:21 +02:00
.eslintrc.yaml
build-addons.js
certdata.txt tools: update certdata.txt 2020-06-01 11:57:11 -07:00
checkimports.py tools: fix check-imports.py to match on word boundaries 2020-05-28 10:02:46 -04:00
compress_json.py
cpplint.py
create_android_makefiles
create_expfile.sh
genv8constants.py
getarch.py
getendian.py
getmachine.py
getmoduleversion.py
getnapibuildversion.py
getnodeversion.py
gyp_node.py
install.py
js2c.py tools: prevent js2c from running if nothing changed 2020-06-15 06:05:08 +02:00
license2rtf.js
license-builder.sh doc,tools: properly syntax highlight API ref docs 2020-05-23 18:11:11 +02:00
lint-js.js
lint-md.js tools: update remark-preset-lint-node from 1.15.0 to 1.15.1 2020-06-06 05:47:36 -07:00
lint-pr-commit-message.sh
lsan_suppressions.txt
macos-firewall.sh
make-v8.sh
mk-ca-bundle.pl
mkssldef.py
osx-codesign.sh
osx-entitlements.plist
osx-gon-config.json.tmpl
osx-notarize.sh
osx-pkg-postinstall.sh
osx-productsign.sh
release.sh
run-valgrind.py
run-worker.js
sign.bat
specialize_node_d.py
test-npm-package.js tools: enable no-else-return lint rule 2020-05-16 06:42:16 +02:00
test-v8.bat
test.py
update-authors.js
update-babel-eslint.sh
update-eslint.sh
utils.py
valgrind.supp