2019-08-01 13:23:36 +02:00
|
|
|
@echo off
|
2019-08-07 17:51:21 +02:00
|
|
|
|
2019-07-30 16:47:55 +02:00
|
|
|
curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c
|
|
|
|
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v.c
|
|
|
|
del v.c
|
2019-08-07 17:51:21 +02:00
|
|
|
|
2019-07-30 16:47:55 +02:00
|
|
|
vc.exe -o v.exe compiler
|
2019-08-05 10:03:38 +02:00
|
|
|
v.exe -os msvc -o v.msvc.exe compiler
|
|
|
|
v.msvc.exe -os msvc -o v.msvc.2.exe compiler
|
|
|
|
v.msvc.exe -o v.gcc.exe compiler
|
2019-08-07 17:51:21 +02:00
|
|
|
|
2019-08-01 13:23:36 +02:00
|
|
|
setlocal EnableDelayedExpansion
|
|
|
|
for /r . %%x in (*_test.v) do (
|
|
|
|
v -o test.exe -debug %%x
|
|
|
|
if !ERRORLEVEL! NEQ 0 goto :fail
|
|
|
|
)
|
2019-08-05 10:03:38 +02:00
|
|
|
for /r . %%x in (*_test.v) do (
|
|
|
|
v.msvc.exe -o test.exe -debug %%x
|
|
|
|
if !ERRORLEVEL! NEQ 0 goto :fail
|
|
|
|
)
|
2019-08-07 17:51:21 +02:00
|
|
|
|
2019-08-05 10:03:38 +02:00
|
|
|
for /r . %%x in (*_test.v) do (
|
2019-08-07 17:51:21 +02:00
|
|
|
v -os msvc -o test.exe -debug %%x
|
2019-08-05 10:03:38 +02:00
|
|
|
if !ERRORLEVEL! NEQ 0 goto :fail
|
|
|
|
)
|
2019-08-08 09:49:56 +02:00
|
|
|
|
2019-08-05 10:03:38 +02:00
|
|
|
for /r . %%x in (*_test.v) do (
|
2019-08-07 17:51:21 +02:00
|
|
|
v.msvc.exe -os msvc -o test.exe -debug %%x
|
2019-08-05 10:03:38 +02:00
|
|
|
if !ERRORLEVEL! NEQ 0 goto :fail
|
|
|
|
)
|
2019-08-07 17:51:21 +02:00
|
|
|
|
2019-08-01 13:23:36 +02:00
|
|
|
goto :done
|
|
|
|
|
|
|
|
:fail
|
2019-08-08 07:30:05 +02:00
|
|
|
echo fail
|
2019-08-01 13:23:36 +02:00
|
|
|
exit /b 1
|
|
|
|
|
|
|
|
:done
|