make.bat: cleanup obsolete warning when tcc is used by default

pull/9221/head
Delyan Angelov 2021-03-09 19:05:43 +02:00
parent 4aa0504ad6
commit eed6f7dbff
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 10 deletions

View File

@ -2,7 +2,6 @@
setlocal EnableDelayedExpansion EnableExtensions setlocal EnableDelayedExpansion EnableExtensions
REM Option flags REM Option flags
set /a invalid_cc=0
set /a shift_counter=0 set /a shift_counter=0
set /a flag_local=0 set /a flag_local=0
set /a flag_verbose=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: REM By default, use tcc, since we have it prebuilt:
:tcc_strap :tcc_strap
:tcc32_strap :tcc32_strap
if [!compiler!] == [] set /a invalid_cc=1
echo ^> Attempting to build v_win.c with TCC echo ^> Attempting to build v_win.c with TCC
if !flag_verbose! EQU 1 ( if !flag_verbose! EQU 1 (
echo [Debug] "!tcc_exe!" -ladvapi32 -bt10 -w -o v.exe vc\v_win.c>>"!log_file!" echo [Debug] "!tcc_exe!" -ladvapi32 -bt10 -w -o v.exe vc\v_win.c>>"!log_file!"
@ -349,19 +347,12 @@ goto :error
:error :error
echo. echo.
echo Exiting from error 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 exit /b 1
:success :success
echo ^> V built successfully! echo ^> V built successfully!
echo ^> To add V to your PATH, run `.\v.exe symlink`. 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 :version
echo. echo.