From 876c33051a54e03fcd054408b87cf8ca0550f115 Mon Sep 17 00:00:00 2001 From: William Throwe Date: Fri, 13 Nov 2015 14:54:25 -0500 Subject: [PATCH] Escape some variables in llvm.mk The important one is $(MAKE). make handles recipes containing the literal string "$(MAKE)" specially, so it is important to make sure it isn't evaluated until recipe invocation time. --- mk/llvm.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mk/llvm.mk b/mk/llvm.mk index 1cbf4a9fb84..b2a90f583f7 100644 --- a/mk/llvm.mk +++ b/mk/llvm.mk @@ -64,10 +64,10 @@ $$(LLVM_AR_$(1)): $$(LLVM_CONFIG_$(1)) # when we changed something not otherwise captured by builtin # dependencies. In these cases, commit a change that touches # the stamp in the source dir. -$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger +$$(LLVM_STAMP_$(1)): $$(S)src/rustllvm/llvm-auto-clean-trigger @$$(call E, make: cleaning llvm) - $(Q)touch $$@.start_time - $(Q)$(MAKE) clean-llvm$(1) + $$(Q)touch $$@.start_time + $$(Q)$$(MAKE) clean-llvm$(1) @$$(call E, make: done cleaning llvm) touch -r $$@.start_time $$@ && rm $$@.start_time