summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2a7d0227..7007d6f4 100644
--- a/Makefile
+++ b/Makefile
@@ -168,9 +168,9 @@ crates.io/gcc-0.3.28.tar.gz:
@mkdir -p $(dir $@)
curl -s https://crates.io/api/v1/crates/gcc/0.3.28/download -o $@
-$(LLVM_LINKAGE_FILE): output/librustc_llvm_build
+$(LLVM_LINKAGE_FILE): output/librustc_llvm_build Makefile
@mkdir -p rustc-nightly/$(RUSTC_TARGET)/cargo_out
- cd rustc-nightly/src/librustc_llvm && (export OUT_DIR=rustc-nightly/$(RUSTC_TARGET)/cargo_out OPT_LEVEL=1 PROFILE=release TARGET=$(RUSTC_TARGET) HOST=$(shell $(CC) --verbose 2>&1 | grep 'Target' | awk '{print $$2}') ; $(DBGTPL) ../../../output/librustc_llvm_build)
+ cd rustc-nightly/src/librustc_llvm && (export OUT_DIR=rustc-nightly/$(RUSTC_TARGET)/cargo_out OPT_LEVEL=1 PROFILE=release TARGET=$(RUSTC_TARGET) HOST=$(shell $(CC) --verbose 2>&1 | grep 'Target' | awk '{print $$2}') ; $(DBGTPL) ../../../output/librustc_llvm_build | grep 'cargo:rustc-link-lib=.*=' | awk -F = '{ print "#[link(name=\""$$3"\")] extern{}" }' > $@)
else
$(LLVM_LINKAGE_FILE):
mkdir -p $(dir $@)