diff options
author | OJ Kwon <kwon.ohjoong@gmail.com> | 2018-04-04 23:42:16 -0700 |
---|---|---|
committer | OJ Kwon <kwon.ohjoong@gmail.com> | 2018-06-20 11:30:58 -0700 |
commit | c20efd5e9a1999d8253be3063113ab3c3a9ee77e (patch) | |
tree | 9cb18fd7b5cb024549e9ebaed1ee063d0cf0ed28 /mach.bat | |
parent | 8f84f893a7444cb28405774613f4eb4c82a0d076 (diff) | |
download | servo-c20efd5e9a1999d8253be3063113ab3c3a9ee77e.tar.gz servo-c20efd5e9a1999d8253be3063113ab3c3a9ee77e.zip |
build(mach): locate vs via vswhere on win32
Diffstat (limited to 'mach.bat')
-rw-r--r-- | mach.bat | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -1,39 +1,2 @@ @echo off - -pushd . - -IF EXIST "%ProgramFiles(x86)%" ( - set "ProgramFiles32=%ProgramFiles(x86)%" -) ELSE ( - set "ProgramFiles32=%ProgramFiles%" -) - -set VC14VARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat -IF EXIST "%VC14VARS%" ( - set "VS_VCVARS=%VC14VARS%" -) ELSE ( - for %%e in (Enterprise Professional Community BuildTools) do ( - IF EXIST "%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat" ( - set "VS_VCVARS=%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat" - ) - ) -) - -IF EXIST "%VS_VCVARS%" ( - IF NOT DEFINED Platform ( - IF EXIST "%ProgramFiles(x86)%" ( - call "%VS_VCVARS%" x64 - ) ELSE ( - ECHO 32-bit Windows is currently unsupported. - EXIT /B - ) - ) -) ELSE ( - ECHO Visual Studio 2015 or 2017 is not installed. - ECHO Download and install Visual Studio 2015 or 2017 from https://www.visualstudio.com/ - EXIT /B -) - -popd - python mach %* |