mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
![tigercosmos](/assets/img/avatar_default.png)
<!-- Please describe your changes on the following line: --> Add path in `mach.bat`. If user only install VS buildtool, they now can use `mach.bat` And therefore modify `README` Continue to PR #18145 r? @larsbergstrom --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 815fb6b0585d11acfd7a9452a5e5d9af65a05377 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 2b971754b5b8aa8dd40e452db5aabb545d9b0aea
36 lines
921 B
Batchfile
36 lines
921 B
Batchfile
@echo off
|
|
|
|
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
|
|
)
|
|
|
|
python mach %*
|