msvc.bat: use v_win.c

pull/1632/head
Alexander Medvednikov 2019-08-17 12:56:42 +03:00 committed by GitHub
parent 20dd538b65
commit 88d775e78e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -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