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: https://github.com/nodejs/node/issues/8286 Refs: https://github.com/nodejs/node/pull/9881 PR-URL: https://github.com/nodejs/node/pull/9961 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
parent
d8c7534fcd
commit
cffbb326a2
10
BUILDING.md
10
BUILDING.md
@ -40,9 +40,17 @@ To build Node.js:
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
$ ./configure
|
$ ./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.
|
Note that the above requires that `python` resolve to Python 2.6 or 2.7 and not a newer version.
|
||||||
|
|
||||||
To run the tests:
|
To run the tests:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user