Makefile: honor local=1 in the fresh_tcc make target (#10172)
							parent
							
								
									bc01de2181
								
							
						
					
					
						commit
						4b11e59bb0
					
				
							
								
								
									
										4
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										4
									
								
								Makefile
								
								
								
								
							| 
						 | 
					@ -121,6 +121,7 @@ endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fresh_tcc:
 | 
					fresh_tcc:
 | 
				
			||||||
	rm -rf $(TMPTCC)
 | 
						rm -rf $(TMPTCC)
 | 
				
			||||||
 | 
					ifndef local
 | 
				
			||||||
# Check wether a TCC branch exists for the user's system configuration.
 | 
					# 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.//')))
 | 
					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)
 | 
						$(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)'
 | 
						@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)
 | 
						$(GITFASTCLONE) --branch thirdparty-unknown-unknown $(TCCREPO) $(TMPTCC)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
						@echo "Using local tccbin"
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(TMPTCC)/.git/config:
 | 
					$(TMPTCC)/.git/config:
 | 
				
			||||||
	$(MAKE) fresh_tcc
 | 
						$(MAKE) fresh_tcc
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue