bat files: v.c to v_win.c

pull/1639/head
unknown-v 2019-08-17 15:31:44 +02:00 committed by Alexander Medvednikov
parent 79c727f014
commit 4f8acca153
3 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@ curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe v_win.c gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe v_win.c
v2.exe -o v.exe compiler v2.exe -o v.exe compiler
del v2.exe del v2.exe
del v.c del v_win.c

View File

@ -20,7 +20,7 @@ echo fetch v_win.c
curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
echo build v_win.c with msvc echo build v_win.c with msvc
cl.exe /w /volatile:ms /D_UNICODE /DUNICODE /Fo.v.c.obj /O2 /MD v_win.c user32.lib kernel32.lib advapi32.lib shell32.lib /link /NOLOGO /OUT:v2.exe /INCREMENTAL:NO cl.exe /w /volatile:ms /D_UNICODE /DUNICODE /Fo.v_win.c.obj /O2 /MD v_win.c user32.lib kernel32.lib advapi32.lib shell32.lib /link /NOLOGO /OUT:v2.exe /INCREMENTAL:NO
if %ERRORLEVEL% GEQ 1 ( if %ERRORLEVEL% GEQ 1 (
goto :compileerror goto :compileerror

View File

@ -5,13 +5,13 @@ del v.exe
del v_win.c del v_win.c
del v2.exe del v2.exe
echo fetch v.c echo fetch v_win.c
curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
if %ERRORLEVEL% NEQ 0 goto :fail if %ERRORLEVEL% NEQ 0 goto :fail
echo build vc using gcc echo build vc using gcc
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v_win.c gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v_win.c
del v.c del v_win.c
if %ERRORLEVEL% NEQ 0 goto :fail if %ERRORLEVEL% NEQ 0 goto :fail
echo build v using vc echo build v using vc