Skip to content

Commit 876c330

Browse files
committed
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.
1 parent 8a813e0 commit 876c330

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mk/llvm.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ $$(LLVM_AR_$(1)): $$(LLVM_CONFIG_$(1))
6464
# when we changed something not otherwise captured by builtin
6565
# dependencies. In these cases, commit a change that touches
6666
# the stamp in the source dir.
67-
$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
67+
$$(LLVM_STAMP_$(1)): $$(S)src/rustllvm/llvm-auto-clean-trigger
6868
@$$(call E, make: cleaning llvm)
69-
$(Q)touch $$@.start_time
70-
$(Q)$(MAKE) clean-llvm$(1)
69+
$$(Q)touch $$@.start_time
70+
$$(Q)$$(MAKE) clean-llvm$(1)
7171
@$$(call E, make: done cleaning llvm)
7272
touch -r $$@.start_time $$@ && rm $$@.start_time
7373

0 commit comments

Comments
 (0)