mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
7a549a4bc2
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
20 lines
446 B
Batchfile
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 %*
|