Windows MSVC: Define vcvars in mach.bat

This commit is contained in:
UK992 2016-08-20 21:18:42 +02:00
parent ef2ee4646f
commit 516676aa5f

View file

@ -1,2 +1,19 @@
@echo off
SET VS_VCVARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat
IF EXIST "%VS_VCVARS%" (
IF NOT DEFINED VisualStudioVersion (
IF EXIST "%ProgramFiles(x86)%" (
call "%VS_VCVARS%" x64
) ELSE (
ECHO 32-bit Windows is currently unsupported.
EXIT /B
)
)
) ELSE (
ECHO Visual Studio 2015 is not installed.
ECHO Download and install Visual Studio 2015 from https://www.visualstudio.com/
EXIT /B
)
python mach %*