From 1a7ac79bfc1ff3c4b2c48c118a4dc1dcd36479d4 Mon Sep 17 00:00:00 2001 From: Paul I Date: Mon, 12 Mar 2018 10:15:31 +0300 Subject: [PATCH] Fix *.bat scripts (#390) --- build.bat | 3 ++- prepare_r2.bat | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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