From 9b88dc8deb68298e173d9ed02f43c43fcb85adfa Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Sun, 15 Sep 2024 17:05:01 +0000 Subject: [PATCH] GNUmakefile: do not try to check how tcc is working, when thirdparty/tcc/tcc.exe is not present (#22226) --- GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 60be65369a3e0a..4779b3d75fc120 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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"