Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,22 @@ To test if Node.js was built correctly:
Release\node -e "console.log('Hello from Node.js', process.version)"
```

Using `vcbuild.bat` currently may rebuild parts of the project unnecessarily and
increase build time. To enable faster incremental builds, use Visual Studio. The
Visual Studio solution `node.sln` is generated by default under the project
directory when `vcbuild.bat` is used to build the project. To only generate the
solution without building it from the command line:

```powershell
.\vcbuild.bat nobuild
```

Then open `node.sln` using Visual Studio using `File > Open > Project/Solution`.
By default the Startup Project can be the one with the smallest name in the
lexical order (e.g. `cctest`). If you want to use shortcuts for e.g. debugging, in the
Solution Explorer panel, right click on the project you want to build and test
(e.g. `node`) and choose `Set as Startup Project`.

##### Using ccache:

Follow <https://github.com/ccache/ccache/wiki/MS-Visual-Studio>, and you
Expand Down Expand Up @@ -792,7 +808,7 @@ When building Node.js, provide a path to your ccache via the option:
.\vcbuild.bat ccache c:\ccache\
```

This will allow for near-instantaneous rebuilds when switching branches back
This will allow for faster rebuilds when switching branches back
and forth that were built with cache.

To use it with ClangCL, run this instead:
Expand All @@ -801,6 +817,13 @@ To use it with ClangCL, run this instead:
.\vcbuild.bat clang-cl ccache c:\ccache\
```

To only generate the Visual Studio solution without building it from the command
line, run this:

```powershell
.\vcbuild.bat clang-cl ccache c:\ccache\ nobuild
```

### Android

Android is not a supported platform. Patches to improve the Android build are
Expand Down
Loading