mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make.bat: cleanup obsolete warning when tcc is used by default
This commit is contained in:
parent
4aa0504ad6
commit
eed6f7dbff
11
make.bat
11
make.bat
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user