Skip to content

Commit 026ae9d

Browse files
mawaregetsukajuanarbol
authored andcommitted
doc: improved parallel specification
PR-URL: #42679 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent d40733d commit 026ae9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ ninja: Entering directory `out/Release`
2222

2323
The bottom line will change while building, showing the progress as
2424
`[finished/total]` build steps. This is useful output that `make` does not
25-
produce and is one of the benefits of using Ninja. Also, Ninja will likely
26-
compile much faster than even `make -j4` (or
27-
`-j<number of processor threads on your machine>`). You can still pass the
28-
number of processes to run for [Ninja][] using the environment variable `JOBS`.
29-
This will be the equivalent to the `-j` parameter in the regular `make`:
25+
produce and is one of the benefits of using Ninja. When using Ninja, builds
26+
are always run in parallel, based by default on the number of CPUs your
27+
system has. You can use the `-j` parameter to override this behavior,
28+
which is equivalent to the `-j` parameter in the regular `make`:
3029

3130
```bash
32-
JOBS=12 make
31+
make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs,
32+
# regardless of the number of cores on the current machine.
3333
```
3434

3535
## Producing a debug build

0 commit comments

Comments
 (0)