Skip to content

Commit

Permalink
doc: add note to parallelize make
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jonathan Darling committed Dec 8, 2016
1 parent 68488e9 commit bd768bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ To build Node.js:

```console
$ ./configure
$ make
$ make -j4
```

Running `make` with the `-j4` flag will cause it to run 4 compilation jobs
concurrently which may significantly reduce build time. The number after `-j`
can be changed to best suit the number of processor cores on your machine. If
you run into problems running `make` with concurrency, try running it without
the `-j4` flag. See the
[GNU Make Documentation](https://www.gnu.org/software/make/manual/html_node/Parallel.html)
for more information.

Note that the above requires that `python` resolve to Python 2.6 or 2.7 and not a newer version.

To run the tests:
Expand Down

0 comments on commit bd768bf

Please sign in to comment.