mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #12956 - UK992:msvc-vcvars, r=metajack
Windows MSVC: Define vcvars in mach.bat 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 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12956) <!-- Reviewable:end -->
This commit is contained in:
commit
7aa0071e9b
1 changed files with 17 additions and 0 deletions
17
mach.bat
17
mach.bat
|
@ -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 %*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue