mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 16:07:39 +00:00
doc: improve ninja build for --built-in-modules-path
The current ninja build does not work with `--node-builtin-modules-path` flag without passing `--ninja` as it will use `make` to build from scratch again. PR-URL: https://github.com/nodejs/node/pull/53007 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
parent
d4442a93e2
commit
00550b043b
@ -7,6 +7,12 @@ doing so can be significantly quicker than using `make`. Please see
|
||||
[Ninja][] is supported in the Makefile. Run `./configure --ninja` to configure
|
||||
the project to run the regular `make` commands with Ninja.
|
||||
|
||||
When modifying only the JS layer in `lib`, you can use:
|
||||
|
||||
```bash
|
||||
./configure --ninja --node-builtin-modules-path "$(pwd)"
|
||||
```
|
||||
|
||||
For example, `make` will execute `ninja -C out/Release` internally
|
||||
to produce a compiled release binary, It will also execute
|
||||
`ln -fs out/Release/node node`, so that you can execute `./node` at
|
||||
|
||||
Loading…
Reference in New Issue
Block a user