Skip to content

Commit b72c014

Browse files
committed
Add Visual Studio Build Tools setup instructions
1 parent e609e22 commit b72c014

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

doc/building.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,18 @@ <h4 id="building-for-musl">Building for musl</h4>
17231723
--with-sysroot=$SYSROOT</code></pre>
17241724
<p>and run <code>make</code> normally.</p>
17251725
<h4 id="building-for-windows-aarch64">Building for Windows AArch64</h4>
1726+
<p>The Visual Studio Build Tools can be used for building the JDK
1727+
without a full Visual Studio installation. Use these arguments to set up
1728+
the Visual Studio 2022 Build Tools on a Windows AArch64 machine for a
1729+
native build:</p>
1730+
<pre><code>vs_buildtools.exe --quiet --wait --norestart --nocache \
1731+
--installPath &quot;%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools&quot; \
1732+
--add Microsoft.VisualStudio.Component.VC.CoreBuildTools \
1733+
--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 \
1734+
--add Microsoft.VisualStudio.Component.Windows11SDK.22621</code></pre>
1735+
<p>When installation is complete, configure the build using the same
1736+
command used with a full Visual Studio installation:</p>
1737+
<pre><code>bash configure --with-boot-jdk=$BOOT_JDK</code></pre>
17261738
<p>To generate Windows AArch64 builds using Cygwin on a Windows x64
17271739
machine, the target platform needs to be set to
17281740
<code>aarch64-unknown-cygwin</code> to enable cross compilation.

doc/building.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,24 @@ sh ./configure --with-jvm-variants=server \
14581458
and run `make` normally.
14591459

14601460
#### Building for Windows AArch64
1461+
The Visual Studio Build Tools can be used for building the JDK without a full
1462+
Visual Studio installation. Use these arguments to set up the Visual Studio
1463+
2022 Build Tools on a Windows AArch64 machine for a native build:
1464+
1465+
```
1466+
vs_buildtools.exe --quiet --wait --norestart --nocache \
1467+
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" \
1468+
--add Microsoft.VisualStudio.Component.VC.CoreBuildTools \
1469+
--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 \
1470+
--add Microsoft.VisualStudio.Component.Windows11SDK.22621
1471+
```
1472+
1473+
When installation is complete, configure the build using the same command used
1474+
with a full Visual Studio installation:
1475+
1476+
```
1477+
bash configure --with-boot-jdk=$BOOT_JDK
1478+
```
14611479

14621480
To generate Windows AArch64 builds using Cygwin on a Windows x64 machine,
14631481
the target platform needs to be set to `aarch64-unknown-cygwin` to enable

0 commit comments

Comments
 (0)