Skip to content

Commit 1dc406b

Browse files
jakecastellimarco-ippolito
authored andcommitted
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: #53007 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent ba764db commit 1dc406b

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
@@ -7,6 +7,12 @@ doing so can be significantly quicker than using `make`. Please see
77
[Ninja][] is supported in the Makefile. Run `./configure --ninja` to configure
88
the project to run the regular `make` commands with Ninja.
99

10+
When modifying only the JS layer in `lib`, you can use:
11+
12+
```bash
13+
./configure --ninja --node-builtin-modules-path "$(pwd)"
14+
```
15+
1016
For example, `make` will execute `ninja -C out/Release` internally
1117
to produce a compiled release binary, It will also execute
1218
`ln -fs out/Release/node node`, so that you can execute `./node` at

0 commit comments

Comments
 (0)