[Pkg-javascript-devel] nodejs bootstrap: maybe a way to avoid two-staged build

Jérémy Lal kapouer at melix.org
Thu Oct 28 22:27:02 BST 2021


...or at least a simpler way.
I stumbled upon a configure flag of nodejs:
--node_builtin_modules_path
This avoids embedding the javascript builtin modules, and let them be
loaded dynamically by nodejs from a static path. This works well in
debian...
It would let us build nodejs without the need for node-acorn first, then
simply
build acorn (voilà ! c'est tout !).
Some features related to repl, assert and error handling might not work,
but from a quick review i think they won't prevent building node-acorn.

Bastien, since you were working on two-staged building, what do you think?
Should i enable that flag by default, for a start ?
Mind that upstream only designed it for debugging purposes.
It would require fixing some tests, but nothing too bad.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211028/318a4527/attachment.htm>


More information about the Pkg-javascript-devel mailing list