From 47c55713ae749e802c14434fa3241efbc30ac725 Mon Sep 17 00:00:00 2001 From: jakecastelli <38635403+jakecastelli@users.noreply.github.com> Date: Fri, 31 May 2024 01:51:56 +0930 Subject: [PATCH] doc: add note to ninjia build for macOS using -jn flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53187 Fixes: https://github.com/nodejs/node/issues/53176 Refs: https://github.com/nodejs/node/issues/53176 Reviewed-By: Luigi Pinca Reviewed-By: Rafael Gonzaga Reviewed-By: Tobias Nießen Reviewed-By: Antoine du Hamel --- doc/contributing/building-node-with-ninja.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/contributing/building-node-with-ninja.md b/doc/contributing/building-node-with-ninja.md index ddb1fc74d4a00a..dbac1c5363444e 100644 --- a/doc/contributing/building-node-with-ninja.md +++ b/doc/contributing/building-node-with-ninja.md @@ -38,6 +38,10 @@ make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs, # regardless of the number of cores on the current machine. ``` +Note: if you are on macOS and use GNU Make version `3.x`, the `-jn` flag +will not work. You can either upgrade to `v4.x` (e.g. using a package manager +such as [Homebrew](https://formulae.brew.sh/formula/make#default)) or use `make JOBS=n`. + ## Producing a debug build To create a debug build rather than a release build: