You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ninja is a build backend supported by gyp which is much faster than make
and is able to parallelize builds across all of the available cores very
well. On my machine, this reduces the average build time from 5:14
minutes to 4:33 minutes.
Copy file name to clipboardExpand all lines: doc/guides/building-node-with-ninja.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,11 @@
2
2
3
3
The purpose of this guide is to show how to build Node.js using [Ninja][], as doing so can be significantly quicker than using `make`. Please see [Ninja's site][Ninja] for installation instructions (unix only).
4
4
5
-
To build Node with ninja, there are 4 steps that must be taken:
5
+
To build Node with ninja, there are 3 steps that must be taken:
6
6
7
-
1. Configure the project's OS-based build rules via `./configure` as usual.
8
-
2. Use `tools/gyp_node.py -f ninja` to produce Ninja-buildable `gyp` output.
9
-
3. Run `ninja -C out/Release` to produce a compiled release binary.
10
-
4. Lastly, make symlink to `./node` using `ln -fs out/Release/node node`.
7
+
1. Configure the project's OS-based build rules via `./configure --ninja`.
8
+
2. Run `ninja -C out/Release` to produce a compiled release binary.
9
+
3. Lastly, make symlink to `./node` using `ln -fs out/Release/node node`.
11
10
12
11
When running `ninja -C out/Release` you will see output similar to the following if the build has succeeded:
13
12
```
@@ -28,12 +27,12 @@ As such, if you wish to run the tests, it can be helpful to invoke the test runn
0 commit comments