From b1e8e0a96858a1094cbfa607d59c50fa0e239deb Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 5 Mar 2021 20:58:34 +0100 Subject: [PATCH] Update vs-cfg.cmd --- win/vs-cfg.cmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win/vs-cfg.cmd b/win/vs-cfg.cmd index 19b71a54b2..d10ba56b95 100644 --- a/win/vs-cfg.cmd +++ b/win/vs-cfg.cmd @@ -54,10 +54,10 @@ if not "!GEN_SHORTHAND!"=="" if !GEN_SHORTHAND!==!GENERATOR! goto :GeneratorShor set "VS_PLATFORM=Win32" :: use the command prompt target platform, at least initially -if "%VSCMD_ARG_TGT_ARCH%"==x86 set "VS_PLATFORM=Win32" -if "%VSCMD_ARG_TGT_ARCH%"==x64 set "VS_PLATFORM=x64" -if "%VSCMD_ARG_TGT_ARCH%"==arm set "VS_PLATFORM=ARM" -if "%VSCMD_ARG_TGT_ARCH%"==arm64 set "VS_PLATFORM=ARM64" +if "%VSCMD_ARG_TGT_ARCH%"=="x86" set "VS_PLATFORM=Win32" +if "%VSCMD_ARG_TGT_ARCH%"=="x64" set "VS_PLATFORM=x64" +if "%VSCMD_ARG_TGT_ARCH%"=="arm" set "VS_PLATFORM=ARM" +if "%VSCMD_ARG_TGT_ARCH%"=="arm64" set "VS_PLATFORM=ARM64" :: "echo if" trick from http://stackoverflow.com/a/8758579 echo(!GEN_SHORTHAND! | findstr /c:"-x86" >nul && ( set "VS_PLATFORM=Win32" )