From 4b11e59bb03566fa1f7ac6e4636545abaa7bcefc Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 22 May 2021 20:08:28 +0200 Subject: [PATCH] Makefile: honor local=1 in the fresh_tcc make target (#10172) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index c874491279..06482a2cc2 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,7 @@ endif fresh_tcc: rm -rf $(TMPTCC) +ifndef local # Check wether a TCC branch exists for the user's system configuration. ifneq (,$(findstring thirdparty-$(TCCOS)-$(TCCARCH), $(shell git ls-remote --heads $(TCCREPO) | sed 's/^[a-z0-9]*\trefs.heads.//'))) $(GITFASTCLONE) --branch thirdparty-$(TCCOS)-$(TCCARCH) $(TCCREPO) $(TMPTCC) @@ -128,6 +129,9 @@ 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) endif +else + @echo "Using local tccbin" +endif $(TMPTCC)/.git/config: $(MAKE) fresh_tcc