about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Prichard <ryan.prichard@gmail.com>2015-03-16 21:13:36 -0700
committerRyan Prichard <ryan.prichard@gmail.com>2015-03-16 21:13:36 -0700
commitb07a1dfcd12348541e81c809b59af9ff56fc1103 (patch)
tree5f70bb8ccf2ef8a8bc08aca61c4e940126814ed9
parent1760e8749a46d8b64f8411a08a79d90e2b5f966e (diff)
downloadrust-b07a1dfcd12348541e81c809b59af9ff56fc1103.tar.gz
rust-b07a1dfcd12348541e81c809b59af9ff56fc1103.zip
Fix the Linux nightly build by adding a LLVM_CONFIG_<target-triple> dep.
The RUST_TARGET_STAGE_N rule uses LLVM_LIBDIR_RUSTFLAGS_<target-triple>,
which expands to -L "$(llvm-config --libdir)" when the target-triple is
also a host-triple. Rather than expand to -L "" if llvm-config has not yet
been built, add a dependency on the target llvm-config.

When the target-triple is not a host-triple, the new LLVM_CONFIG_$(2)
dependency should expand to nothing.
-rw-r--r--mk/target.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/target.mk b/mk/target.mk
index 0a41f363649..da18a9a4392 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -72,6 +72,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
 $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
 		$$(CRATEFILE_$(4)) \
 		$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
+		$$(LLVM_CONFIG_$(2)) \
 		$$(TSREQ$(1)_T_$(2)_H_$(3)) \
 		| $$(TLIB$(1)_T_$(2)_H_$(3))/
 	@$$(call E, rustc: $$(@D)/lib$(4))