gecko-dev/servo/mach.bat
UK992 7a549a4bc2 servo: Merge #12956 - Windows MSVC: Define vcvars in mach.bat (from UK992:msvc-vcvars); r=metajack
Define vcvars for msvc build, if they have not yet been. If vcvars not exist, show message that visual studio 2015 is not installed and where to download it.
Fixes #12948

Source-Repo: https://github.com/servo/servo
Source-Revision: 7aa0071e9b59db792742e1a47bd8577764a89fa7
2016-08-22 16:52:15 -05:00

20 lines
446 B
Batchfile

@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 %*