From eed6f7dbff5432c7312e5014628b7d789a465f85 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 9 Mar 2021 19:05:43 +0200 Subject: [PATCH] make.bat: cleanup obsolete warning when tcc is used by default --- make.bat | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/make.bat b/make.bat index 37dba43e53..2680e5efd4 100644 --- a/make.bat +++ b/make.bat @@ -2,7 +2,6 @@ setlocal EnableDelayedExpansion EnableExtensions REM Option flags -set /a invalid_cc=0 set /a shift_counter=0 set /a flag_local=0 set /a flag_verbose=0 @@ -183,7 +182,6 @@ if not [!compiler!] == [] goto :!compiler!_strap REM By default, use tcc, since we have it prebuilt: :tcc_strap :tcc32_strap -if [!compiler!] == [] set /a invalid_cc=1 echo ^> Attempting to build v_win.c with TCC if !flag_verbose! EQU 1 ( echo [Debug] "!tcc_exe!" -ladvapi32 -bt10 -w -o v.exe vc\v_win.c>>"!log_file!" @@ -349,19 +347,12 @@ goto :error :error echo. echo Exiting from error +echo ERROR: please follow the instructions in https://github.com/vlang/v/wiki/Installing-a-C-compiler-on-Windows exit /b 1 :success echo ^> V built successfully! echo ^> To add V to your PATH, run `.\v.exe symlink`. -if !invalid_cc! EQU 1 ( - echo. - echo WARNING: No C compiler was detected in your PATH. `tcc` was used temporarily - echo to build V, but it may have some bugs and may not work in all cases. - echo A more advanced C compiler like GCC or MSVC is recommended. - echo https://github.com/vlang/v/wiki/Installing-a-C-compiler-on-Windows - echo. -) :version echo.