Commit graph

13 commits

Author SHA1 Message Date
Dominic Cooney
aa3359dc9e Make mach.bat request Python 3
The mach Python script no longer supports Python 2, so don't use
Python 2.

Fixes #28379

Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
2021-05-22 18:27:10 +09:00
MeFisto94
215177d791 Launch vcvarsall.bat for the recognized VS Installation Directory from python instead of making mach.bat try that on hardcoded paths. 2019-12-23 00:31:07 +01:00
TheGoddessInari
903729159e Rework mach.bat to support VS2019 and user-supplied environments.
As a bonus, use setlocal to avoid environment pollution.
2019-04-01 11:15:22 -04:00
TheGoddessInari
e1eb36050e Default mach.bat to using py -2.
Servo already assumes the user has Python, this is the primary
way to make sure that Python 2 is preferred, and you should
get a sensible error message if you have python 3 but not 2.

But first, check that py.exe exists because if a system has only
Python 2.x only, it won't have it. If it doesn't, then try python.exe.
2019-04-01 11:15:22 -04:00
Simon Sapin
1bab9fb64f mach.bat: exit with an error code 2018-10-08 16:44:21 +02:00
Josh Matthews
64cbf02084 Revert "build(mach): locate vs via vswhere on win32"
This reverts commit c20efd5e9a.
2018-08-20 12:58:59 -04:00
OJ Kwon
c20efd5e9a
build(mach): locate vs via vswhere on win32 2018-06-20 11:30:58 -07:00
Andrés Barreiro
1f2b5d684f Get back to working dir after vcvarsall.bat
When using cmd.exe directly, vcvarsall.bat changes the working directory.
To prevent this, pushd and popd could be used.
2017-11-21 19:17:29 +01:00
tigercosmos
26dc7ac973 update just VS buildtool for Windows build 2017-09-09 23:40:20 +08:00
UK992
9b35fd9472 Add support for Visual Studio 2017 2017-04-11 23:31:22 +02:00
UK992
a5ce6304b1 Fix hardcoded path to link.exe 2017-02-03 13:33:37 +01:00
UK992
516676aa5f Windows MSVC: Define vcvars in mach.bat 2016-08-22 18:02:49 +02:00
Vladimir Vukicevic
5bbec7469d Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00