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:
jakecastelli 2024-05-18 00:09:44 +09:30 committed by GitHub
parent d4442a93e2
commit 00550b043b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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