1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make.bat: add a small delay between del v.exe and move v2.exe v.exe, to make CI runs more robust

This commit is contained in:
Delyan Angelov 2022-08-22 22:08:28 +03:00
parent d40d761e38
commit 98c6dad887
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -130,8 +130,7 @@ if %ERRORLEVEL% NEQ 0 goto :compile_error
echo ^> Compiling .\v.exe with itself
v.exe -keepc -g -showcc -cc "!tcc_exe!" -cflags -Bthirdparty/tcc -o v2.exe cmd/v
if %ERRORLEVEL% NEQ 0 goto :clang_strap
del v.exe
move v2.exe v.exe
call :move_v2_to_v
goto :success
:clang_strap
@ -153,8 +152,7 @@ if %ERRORLEVEL% NEQ 0 (
echo ^> Compiling .\v.exe with itself
v.exe -keepc -g -showcc -cc clang -o v2.exe cmd/v
if %ERRORLEVEL% NEQ 0 goto :compile_error
del v.exe
move v2.exe v.exe
call :move_v2_to_v
goto :success
:gcc_strap
@ -176,8 +174,7 @@ if %ERRORLEVEL% NEQ 0 (
echo ^> Compiling .\v.exe with itself
v.exe -keepc -g -showcc -cc gcc -o v2.exe cmd/v
if %ERRORLEVEL% NEQ 0 goto :compile_error
del v.exe
move v2.exe v.exe
call :move_v2_to_v
goto :success
:msvc_strap
@ -219,8 +216,7 @@ echo ^> Compiling .\v.exe with itself
v.exe -keepc -g -showcc -cc msvc -o v2.exe cmd/v
del %ObjFile%
if %ERRORLEVEL% NEQ 0 goto :compile_error
del v.exe
move v2.exe v.exe
call :move_v2_to_v
goto :success
:download_tcc
@ -333,3 +329,10 @@ exit /b 0
popd
endlocal
exit /b 0
:move_v2_to_v
del v.exe
REM sleep for at most 100ms
ping 192.0.2.1 -n 1 -w 100 >nul
move v2.exe v.exe
exit /b 0