fix make.bat
parent
24fdefe152
commit
847b43f6e4
7
make.bat
7
make.bat
|
@ -7,17 +7,18 @@ if exist "vc" (
|
|||
)
|
||||
|
||||
git version
|
||||
|
||||
echo Downloading v.c...
|
||||
git clone --depth 1 --quiet https://github.com/vlang/vc
|
||||
|
||||
REM option to force msvc or gcc
|
||||
if "%~1"=="-gcc" goto :gccstrap
|
||||
if "%~1"=="-msvc" goto :msvcstrap
|
||||
|
||||
goto :msvcstrap
|
||||
|
||||
:gccstrap
|
||||
|
||||
echo attempting to bootstrap with GCC
|
||||
echo Attempting to build v.c with GCC...
|
||||
|
||||
for /f "usebackq tokens=*" %%i in (`where gcc`) do (
|
||||
set gccpath=%%i
|
||||
|
@ -47,7 +48,7 @@ goto :success
|
|||
|
||||
|
||||
:msvcstrap
|
||||
echo Attempting to bootstrap with MSVC
|
||||
echo Attempting to build v.c with MSVC...
|
||||
|
||||
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
|
||||
set InstallDir=%%i
|
||||
|
|
Loading…
Reference in New Issue