Files
node/tools
Joyee Cheung 44ecd41892 build: pass directory instead of list of files to js2c.py
On Windows there is a limit to the length of commands, so there
will be an error once the lengths of the JS file names combined
exceed that limit. This patch modifies js2c.py so that
it now takes a --directory argument to glob for .js and
.mjs files in addition to the list of files passed directly.
We still pass the additional files we include from deps/
directly through the command line, as we only includes some of
them so we cannot simply glob, but those are limited so listing
them out should be fine.

Refs: https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation

PR-URL: https://github.com/nodejs/node/pull/39069
Refs: https://github.com/nodejs/node/pull/38971
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-06-24 13:53:29 -07:00
..
2021-06-03 01:55:16 +00:00
2021-04-14 09:07:29 +00:00
2020-12-16 23:45:26 +01:00
2021-06-10 14:17:49 +08:00
2020-12-16 23:45:26 +01:00
2021-02-13 18:08:48 +01:00