Skip to content

Commit 9b84324

Browse files
committed
Update Visual Studio paths for arm64 architecture in build workflows
1 parent 9308556 commit 9b84324

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build-windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
run: |
107107
set +e
108108
if [ "${{ inputs.msvc-toolset-architecture }}" = "arm64" ]; then
109-
vcvars="/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/vc/auxiliary/build/vcvarsarm64.bat"
109+
vcvars="/c/Program Files/Microsoft Visual Studio/2022/Enterprise/vc/auxiliary/build/vcvarsarm64.bat"
110110
else
111111
vcvars="/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/vc/auxiliary/build/vcvars64.bat"
112112
fi
@@ -122,8 +122,13 @@ jobs:
122122
- name: 'Install toolchain and dependencies'
123123
run: |
124124
# Run Visual Studio Installer
125+
if [ "${{ inputs.msvc-toolset-architecture }}" = "arm64" ]; then
126+
install_path="C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
127+
else
128+
install_path="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
129+
fi
125130
'/c/Program Files (x86)/Microsoft Visual Studio/Installer/vs_installer.exe' \
126-
modify --quiet --installPath 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise' \
131+
modify --quiet --installPath "${install_path}" \
127132
--add Microsoft.VisualStudio.Component.VC.${{ inputs.msvc-toolset-version }}.${{ inputs.msvc-toolset-architecture }}
128133
if: steps.toolchain-check.outputs.toolchain-installed != 'true'
129134

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ jobs:
329329
msvc-toolset-version: '14.29'
330330
msvc-toolset-architecture: 'arm64'
331331
make-target: 'hotspot'
332-
extra-conf-options: '--openjdk-target=aarch64-unknown-cygwin'
333332
configure-arguments: ${{ github.event.inputs.configure-arguments }}
334333
make-arguments: ${{ github.event.inputs.make-arguments }}
335334
if: needs.prepare.outputs.windows-aarch64 == 'true'

0 commit comments

Comments
 (0)