1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/make.bat

30 lines
443 B
Batchfile
Raw Normal View History

2019-08-29 00:18:30 +03:00
set exiterror=0
@echo off
echo Building V for Windows...
if exist "vc" (
rd /s /q vc
2019-08-29 00:18:30 +03:00
)
git version
2019-08-17 19:24:22 +03:00
git clone --depth 1 --quiet https://github.com/vlang/vc
2019-08-29 00:18:30 +03:00
2019-08-17 19:24:22 +03:00
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe vc/v_win.c
2019-08-29 00:18:30 +03:00
if %ERRORLEVEL% GEQ 1 (
goto :compileerror
)
2019-08-11 20:10:22 +03:00
v2.exe -o v.exe compiler
del v2.exe
2019-08-17 19:24:22 +03:00
rd /s /q vc
2019-08-29 00:18:30 +03:00
:compileerror
echo Failed to compile - Create an issue at 'https://github.com/vlang'
goto :error
:error
echo fail
exit /b 1