Skip to content

Commit 0b6ac1e

Browse files
committed
Add msvc-build-launcher-arm64.cmd to use VS 2019 to compile arm binaries
1 parent b388081 commit 0b6ac1e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

msvc-build-launcher-arm64.cmd

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
set PATH_OLD=%PATH%
4+
set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build;%PATH_OLD%
5+
6+
REM now for arm 64-bit
7+
REM Cross compile for arm64
8+
call VCVARSx86_arm64
9+
if "%ERRORLEVEL%"=="0" (
10+
cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:arm64 /SUBSYSTEM:CONSOLE /out:setuptools/cli-arm64.exe
11+
cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:arm64 /SUBSYSTEM:WINDOWS /out:setuptools/gui-arm64.exe
12+
) else (
13+
echo Visual Studio 2019 with arm64 toolchain not installed
14+
)
15+
16+
set PATH=%PATH_OLD%
17+

0 commit comments

Comments
 (0)