summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-15 17:27:56 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-15 17:27:56 +0800
commitf095478f874b2122a98d0acd7dd1a59293799a94 (patch)
tree91e679550392539cdf75aed00478d175f7d2a13e
parent6013db4d24e59d4827bdc2188852d58867f1bed6 (diff)
downloadmrust-f095478f874b2122a98d0acd7dd1a59293799a94.tar.gz
Makefile - Disable build script support (until it works)
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 97644115..df9b9cb3 100644
--- a/Makefile
+++ b/Makefile
@@ -148,6 +148,7 @@ RUSTC_TARGET := x86_64-unknown-linux-gnu
LLVM_LINKAGE_FILE := $(abspath rustc-nightly/$(RUSTC_TARGET)/rt/llvmdeps.rs)
output/librustc_llvm.hir: $(LLVM_LINKAGE_FILE)
+ifeq ($(USE_BUILD_SCRIPT),yes)
output/librustc_llvm_build: rustc-nightly/src/librustc_llvm/build.rs output/libstd.hir output/libgcc.hir output/libbuild_helper.hir
@echo "--- [MRUSTC] $@"
$(BIN) $< -o $@ $(PIPECMD)
@@ -166,6 +167,10 @@ crates.io/gcc-0.3.28.tar.gz:
$(LLVM_LINKAGE_FILE): output/librustc_llvm_build
TARGET=$(RUSTC_TARGET) HOST=$(shell $(CC) --verbose 2>&1 | grep 'Target' | awk '{print $$2}') output/librustc_llvm_build
+else
+$(LLVM_LINKAGE_FILE):
+ echo > $@
+endif
ARGS_output/librustc_llvm.hir := --cfg llvm_component=x86
ENV_output/librustc_llvm.hir := CFG_LLVM_LINKAGE_FILE=$(LLVM_LINKAGE_FILE)