aboutsummaryrefslogtreecommitdiffstats
path: root/mach.bat
diff options
context:
space:
mode:
authorOJ Kwon <kwon.ohjoong@gmail.com>2018-04-04 23:42:16 -0700
committerOJ Kwon <kwon.ohjoong@gmail.com>2018-06-20 11:30:58 -0700
commitc20efd5e9a1999d8253be3063113ab3c3a9ee77e (patch)
tree9cb18fd7b5cb024549e9ebaed1ee063d0cf0ed28 /mach.bat
parent8f84f893a7444cb28405774613f4eb4c82a0d076 (diff)
downloadservo-c20efd5e9a1999d8253be3063113ab3c3a9ee77e.tar.gz
servo-c20efd5e9a1999d8253be3063113ab3c3a9ee77e.zip
build(mach): locate vs via vswhere on win32
Diffstat (limited to 'mach.bat')
-rw-r--r--mach.bat37
1 files changed, 0 insertions, 37 deletions
diff --git a/mach.bat b/mach.bat
index f81fc6a7e9b..d98f7953934 100644
--- a/mach.bat
+++ b/mach.bat
@@ -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 %*