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

make.bat: fix incorrect sequence in checking for a valid C compiler (#7050)

This commit is contained in:
heronwr 2020-11-30 10:52:43 -05:00 committed by GitHub
parent a98162118b
commit 434fa70584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,7 @@ if %ERRORLEVEL% NEQ 0 goto :compile_error
goto :success
:tcc_strap
if [!compiler!] == [] set /a invalid_cc=1
echo ^> Attempting to build v.c with TCC
call :buildcmd ""!tcc_exe!" -std=c99 -municode -lws2_32 -lshell32 -ladvapi32 -bt10 -w -o v.exe vc\v_win.c" " "
if %ERRORLEVEL% NEQ 0 goto :compile_error
@ -236,7 +237,6 @@ if %ERRORLEVEL% NEQ 0 goto :compile_error
goto :success
:download_tcc
if [!compiler!] == [] set /a invalid_cc=1
pushd %tcc_dir% 2>NUL && (
echo Updating TCC
echo ^> Syncing TCC from !tcc_url!