bat files: v.c to v_win.c
parent
79c727f014
commit
4f8acca153
2
make.bat
2
make.bat
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue