Skip to content

Commit 7f3a796

Browse files
committed
Fix ARM64/WIN64 logic and simplify it
ARM64 may be undefined which causes a build failure (e.g. on non ARM64 but Win64 platform). So simplify the logic and get rid of the nested logic Signed-off-by: Christian Brabandt <[email protected]>
1 parent 4ee29d0 commit 7f3a796

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

appveyor.bat

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,11 @@ mklink /J vim\runtime\GvimExt vim\src\GvimExt
539539

540540
pushd vim\nsis
541541

542-
if /I "%ARCH%"=="x64" (
543-
set WIN64=1
544-
if /I "%PLATFORM%"=="arm64" set ARM64=1
545-
) else (
546-
set WIN64=0
547-
set ARM64=0
548-
)
542+
set WIN64=0
543+
set ARM64=0
544+
545+
if /I "%ARCH%"=="x64" set WIN64=1
546+
if /I "%PLATFORM%"=="arm64" set ARM64=1
549547

550548
nmake.exe -lf Make_mvc.mak "X=OutFile ..\..\gvim_%VER_NUM%_%CUSTOM%.exe" ^
551549
"GETTEXT=%DEPENDENCIES%" "VIMSRC=..\runtime" "VIMRT=..\runtime" ^

0 commit comments

Comments
 (0)