summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-02-23 18:04:21 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-02-23 18:04:21 +0800
commitcb04e0ba3611deff03566eb035b2c35b4b8890f9 (patch)
treeb8a8d6a123ba5f620548c47b4d6d9fe5bb4ea81a
parent682cc6bb27543a00c9ede5800cdbf40a6f137057 (diff)
downloadmrust-cb04e0ba3611deff03566eb035b2c35b4b8890f9.tar.gz
Makefile - Create output dir for libflate build script before running
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e022b7c6..a5c3edf4 100644
--- a/Makefile
+++ b/Makefile
@@ -192,6 +192,7 @@ $(LLVM_LINKAGE_FILE): output/librustc_llvm_build $(LLVM_CONFIG)
output/cargo_libflate/libminiz.a: output/libflate_build
@echo "--- $<"
+ $Vmkdir -p $(abspath output/cargo_libflate)
$Vcd rustc-nightly/src/libflate && (export OUT_DIR=$(abspath output/cargo_libflate) OPT_LEVEL=1 PROFILE=release TARGET=$(RUSTC_TARGET) HOST=$(RUSTC_HOST); $(DBG) ../../../$< > ../../../$<-output.txt)
$Vcat $<-output.txt | grep '^cargo:' > $<-output_cargo.txt
$Vcat $<-output_cargo.txt | grep 'cargo:rustc-link-search=native=' | awk -F = '{ print "-L " $$3 }' > output/rustc_link_opts-libflate.txt