From 434fa70584dff89cd00fd104c5c77abe95fe1f7c Mon Sep 17 00:00:00 2001 From: heronwr <69945226+heronwr@users.noreply.github.com> Date: Mon, 30 Nov 2020 10:52:43 -0500 Subject: [PATCH] make.bat: fix incorrect sequence in checking for a valid C compiler (#7050) --- make.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.bat b/make.bat index adeef50e21..04936dd83c 100644 --- a/make.bat +++ b/make.bat @@ -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!