mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-26 16:09:08 +00:00
bootstrap.bat - run vcvarsall if cl not found
This commit is contained in:
parent
6328c3d69f
commit
2809eda795
@ -7,6 +7,17 @@ cd /D "%~dp0"
|
||||
|
||||
if "%~1" == "" goto :usage
|
||||
|
||||
where cl >nul 2>nul
|
||||
if %ERRORLEVEL%==0 goto :build
|
||||
|
||||
:: Attempt to run vcvarsall if cl was not found.
|
||||
for /f "tokens=*" %%g in (
|
||||
'"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath'
|
||||
) do (set installation_path=%%g)
|
||||
call "%installation_path%\VC\Auxiliary\Build\vcvarsall" x64
|
||||
|
||||
:build
|
||||
|
||||
set dir=%1
|
||||
if not exist "%dir%" mkdir "%dir%"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user