msvc.bat: use v_win.c
parent
20dd538b65
commit
88d775e78e
|
@ -16,11 +16,11 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
|
||||||
goto :nomsvc
|
goto :nomsvc
|
||||||
)
|
)
|
||||||
|
|
||||||
echo fetch v.c
|
echo fetch v_win.c
|
||||||
curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c
|
curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
|
||||||
|
|
||||||
echo build v.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.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.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
|
||||||
|
@ -29,8 +29,8 @@ if %ERRORLEVEL% GEQ 1 (
|
||||||
echo rebuild from source
|
echo rebuild from source
|
||||||
v2.exe -o v.exe compiler
|
v2.exe -o v.exe compiler
|
||||||
|
|
||||||
del .v.c.obj
|
del .v_win.c.obj
|
||||||
del v.c
|
del v_win.c
|
||||||
del v2.exe
|
del v2.exe
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue