Skip to content

Commit 0f0bc98

Browse files
jakecastellitargos
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 e2211a0 commit 0f0bc98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
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)