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.
This commit is contained in:
parent
8a813e088c
commit
876c33051a
|
@ -64,10 +64,10 @@ $$(LLVM_AR_$(1)): $$(LLVM_CONFIG_$(1))
|
||||||
# when we changed something not otherwise captured by builtin
|
# when we changed something not otherwise captured by builtin
|
||||||
# dependencies. In these cases, commit a change that touches
|
# dependencies. In these cases, commit a change that touches
|
||||||
# the stamp in the source dir.
|
# 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)
|
@$$(call E, make: cleaning llvm)
|
||||||
$(Q)touch $$@.start_time
|
$$(Q)touch $$@.start_time
|
||||||
$(Q)$(MAKE) clean-llvm$(1)
|
$$(Q)$$(MAKE) clean-llvm$(1)
|
||||||
@$$(call E, make: done cleaning llvm)
|
@$$(call E, make: done cleaning llvm)
|
||||||
touch -r $$@.start_time $$@ && rm $$@.start_time
|
touch -r $$@.start_time $$@ && rm $$@.start_time
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue