Skip to content

Commit

Permalink
doc: improve ninja build for --built-in-modules-path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jakecastelli committed May 15, 2024
1 parent 9807ede commit 9c16924
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/contributing/building-node-with-ninja.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs,
# regardless of the number of cores on the current machine.
```

If you wish to only modify JS layer in `lib`, you can use:

```bash
./configure --ninja --node-builtin-modules-path "$(pwd)"
```

## Producing a debug build

To create a debug build rather than a release build:
Expand Down

0 comments on commit 9c16924

Please sign in to comment.