From f90a3d7a54961c32b3fdbac556dbed913e57aba7 Mon Sep 17 00:00:00 2001 From: mawaregetsuka <33221990+mawaregetsuka@users.noreply.github.com> Date: Sun, 22 May 2022 19:47:38 +0800 Subject: [PATCH] doc: improved parallel specification PR-URL: https://github.com/nodejs/node/pull/42679 Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- doc/contributing/building-node-with-ninja.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/contributing/building-node-with-ninja.md b/doc/contributing/building-node-with-ninja.md index 5231b73a8cdd6e..8aae340e227034 100644 --- a/doc/contributing/building-node-with-ninja.md +++ b/doc/contributing/building-node-with-ninja.md @@ -22,14 +22,14 @@ ninja: Entering directory `out/Release` The bottom line will change while building, showing the progress as `[finished/total]` build steps. This is useful output that `make` does not -produce and is one of the benefits of using Ninja. Also, Ninja will likely -compile much faster than even `make -j4` (or -`-j`). You can still pass the -number of processes to run for [Ninja][] using the environment variable `JOBS`. -This will be the equivalent to the `-j` parameter in the regular `make`: +produce and is one of the benefits of using Ninja. When using Ninja, builds +are always run in parallel, based by default on the number of CPUs your +system has. You can use the `-j` parameter to override this behavior, +which is equivalent to the `-j` parameter in the regular `make`: ```bash -JOBS=12 make +make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs, + # regardless of the number of cores on the current machine. ``` ## Producing a debug build