diff --git a/build.bat b/build.bat index 7c388a48..a3f67d7b 100644 --- a/build.bat +++ b/build.bat @@ -1,7 +1,8 @@ @ECHO off SETLOCAL ENABLEDELAYEDEXPANSION -IF "%Platform%" == "X64" ( +FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i +IF "%PLATFORM%" == "x64" ( SET MSBUILDPLATFORM=x64 SET BITS=64 ) ELSE ( diff --git a/prepare_r2.bat b/prepare_r2.bat index 137f5091..626dbb70 100644 --- a/prepare_r2.bat +++ b/prepare_r2.bat @@ -1,7 +1,8 @@ @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION -IF "%Platform%" == "X64" ( +FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i +IF "%PLATFORM%" == "x64" ( SET BITS=64 ) ELSE ( SET BITS=32