Skip to content

Commit ff8fdb1

Browse files
Jonathan DarlingFishrock123
Jonathan Darling
authored andcommitted
doc: add note to parallelize make
Adds a note to the BUILDING doc to encourage parallelizing make. When I first built node I didn't know this trick and thought that the build was just stuck in an infinite loop after waiting for 10 minutes. Refs: #8286 Refs: #9881 PR-URL: #9961 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
1 parent 5a64187 commit ff8fdb1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

BUILDING.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ To build Node.js:
4040

4141
```console
4242
$ ./configure
43-
$ make
43+
$ make -j4
4444
```
4545

46+
Running `make` with the `-j4` flag will cause it to run 4 compilation jobs
47+
concurrently which may significantly reduce build time. The number after `-j`
48+
can be changed to best suit the number of processor cores on your machine. If
49+
you run into problems running `make` with concurrency, try running it without
50+
the `-j4` flag. See the
51+
[GNU Make Documentation](https://www.gnu.org/software/make/manual/html_node/Parallel.html)
52+
for more information.
53+
4654
Note that the above requires that `python` resolve to Python 2.6 or 2.7 and not a newer version.
4755

4856
To run the tests:

0 commit comments

Comments
 (0)