Skip to content

Commit 8e60193

Browse files
jkunkeeBridgeAR
authored andcommitted
win,build: add ARM64 support to vcbuild.bat
PR-URL: #25995 Reviewed-By: João Reis <reis@janeasystems.com>
1 parent d75cb91 commit 8e60193

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎vcbuild.bat‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ if /i "%1"=="clean" set target=Clean&goto arg-ok
7373
if /i "%1"=="ia32"settarget_arch=x86&goto arg-ok
7474
if /i "%1"=="x86"settarget_arch=x86&goto arg-ok
7575
if /i "%1"=="x64"settarget_arch=x64&goto arg-ok
76+
if /i "%1"=="arm64"settarget_arch=arm64&goto arg-ok
7677
if /i "%1"=="vs2017"settarget_env=vs2017&goto arg-ok
7778
if /i "%1"=="noprojgen"setnoprojgen=1&goto arg-ok
7879
if /i "%1"=="projgen"setprojgen=1&goto arg-ok
@@ -203,7 +204,8 @@ if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
203204
call tools\msvs\find_python.cmd
204205
iferrorlevel1goto :exit
205206

206-
ifnotdefined openssl_no_asm call tools\msvs\find_nasm.cmd
207+
REM NASM is only needed on IA32 and x86_64.
208+
ifnotdefined openssl_no_asm if"%target_arch%"NEQ"arm64"call tools\msvs\find_nasm.cmd
207209
iferrorlevel1echo Could not find NASM, install it or build with openssl-no-asm. See BUILDING.md.
208210

209211
call :getnodeversion||exit /b 1
@@ -314,6 +316,7 @@ set "msbcpu=/m:2"
314316
if"%NUMBER_OF_PROCESSORS%"=="1"set"msbcpu=/m:1"
315317
set"msbplatform=Win32"
316318
if"%target_arch%"=="x64"set"msbplatform=x64"
319+
if"%target_arch%"=="arm64"set"msbplatform=ARM64"
317320
if"%target%"=="Build" (
318321
ifdefined no_cctest settarget=rename_node_bin_win
319322
if"%test_args%"==""settarget=rename_node_bin_win

0 commit comments

Comments
 (0)