diff --git a/make.bat b/make.bat index 28f7cf429d..ed5dfd212e 100644 --- a/make.bat +++ b/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 v2.exe -o v.exe compiler del v2.exe -del v.c +del v_win.c diff --git a/make_msvc.bat b/make_msvc.bat index 56fdb120a8..3fa2b65c14 100644 --- a/make_msvc.bat +++ b/make_msvc.bat @@ -20,7 +20,7 @@ echo fetch v_win.c curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c 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 ( goto :compileerror diff --git a/make_tests.bat b/make_tests.bat index 9d87861d19..7d4b63c5ae 100644 --- a/make_tests.bat +++ b/make_tests.bat @@ -5,13 +5,13 @@ del v.exe del v_win.c del v2.exe -echo fetch v.c +echo fetch v_win.c curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c if %ERRORLEVEL% NEQ 0 goto :fail echo build vc using gcc 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 echo build v using vc