Skip to content

Commit 9c16924

Browse files
committed
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.
1 parent 9807ede commit 9c16924

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/contributing/building-node-with-ninja.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs,
3232
# regardless of the number of cores on the current machine.
3333
```
3434

35+
If you wish to only modify JS layer in `lib`, you can use:
36+
37+
```bash
38+
./configure --ninja --node-builtin-modules-path "$(pwd)"
39+
```
40+
3541
## Producing a debug build
3642

3743
To create a debug build rather than a release build:

0 commit comments

Comments
 (0)