Skip to content

Commit b3a334a

Browse files
committed
mk: Fix llvmdeps.rs dependencies
In a multi-host build the mklldeps.py tool is getting called before all the llvm-configs are built. I am not actually sure the cause. I had convinced myself that DEF_LLVM_RULES needed to be called before the llvmdeps.rs rule, but now looking at it again I can't see why.
1 parent a1cb8dc commit b3a334a

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
@@ -47,11 +47,11 @@ endef
4747
$(foreach host,$(CFG_HOST), \
4848
$(eval LLVM_CONFIGS := $(LLVM_CONFIGS) $(LLVM_CONFIG_$(host))))
4949

50+
$(foreach host,$(CFG_HOST), \
51+
$(eval $(call DEF_LLVM_RULES,$(host))))
52+
5053
$(S)src/librustc/lib/llvmdeps.rs: \
5154
$(LLVM_CONFIGS) \
5255
$(S)src/etc/mklldeps.py
5356
$(Q)$(CFG_PYTHON) $(S)src/etc/mklldeps.py \
5457
"$@" "$(LLVM_COMPONENTS)" $(LLVM_CONFIGS)
55-
56-
$(foreach host,$(CFG_HOST), \
57-
$(eval $(call DEF_LLVM_RULES,$(host))))

0 commit comments

Comments
 (0)