GNUmakefile: do not try to check how tcc is working, when thirdparty/tcc/tcc.exe is not present (#22226)

This commit is contained in:
Laurent Cheylus 2024-09-15 17:05:01 +00:00 committed by GitHub
parent deb7ddd9d0
commit 9b88dc8deb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,10 @@ fresh_vc:
ifndef local
latest_tcc: $(TMPTCC)/.git/config
cd $(TMPTCC) && $(GITCLEANPULL)
ifneq (,$(wildcard ./tcc.exe))
@$(MAKE) --quiet check_for_working_tcc 2> /dev/null
endif
else
latest_tcc:
@echo "Using local tcc"
@ -161,7 +164,6 @@ ifneq (,$(findstring thirdparty-$(TCCOS)-$(TCCARCH), $(shell git ls-remote --hea
else
@echo 'Pre-built TCC not available for thirdparty-$(TCCOS)-$(TCCARCH) at $(TCCREPO), will use the system compiler: $(CC)'
$(GITFASTCLONE) --branch thirdparty-unknown-unknown $(TCCREPO) $(TMPTCC)
@$(MAKE) --quiet check_for_working_tcc 2> /dev/null
endif
else
@echo "Using local tccbin"