summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-13 23:11:27 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-13 23:11:27 +0800
commit27be955d74e03e5db1c549367f3f784ec535f509 (patch)
tree3951d42a2b316bbdc7b9c9d60347a87822ef1955
parentcfe846360c614feadaf42a76705bf3e5d08d5a4f (diff)
downloadmrust-27be955d74e03e5db1c549367f3f784ec535f509.tar.gz
Makefile - Fix rule for rustc
-rw-r--r--Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 492c8072..7f8bdc06 100644
--- a/Makefile
+++ b/Makefile
@@ -197,17 +197,13 @@ output/librustc_bitflags.hir: $(call fcn_extcrate, core $(call fn_getdeps, $(RUS
output/librustc_privacy.hir: $(call fcn_extcrate, std $(call fn_getdeps, $(RUSTCSRC)src/librustc_privacy/lib.rs))
output/librustc_platform_intrinsics.hir: $(call fcn_extcrate, std $(call fn_getdeps, $(RUSTCSRC)src/librustc_platform_intrinsics/lib.rs))
-output/rustc: output/rustc.o
- $(TARGET_CC) $< -pthread -lm -g -o $@
-output/rustc.o: output/rustc.c
- $(TARGET_CC) -c $< -g -O1 -o $@
-output/rustc.c: $(RUSTCSRC)src/rustc/rustc.rs output/librustc.hir output/librustc_driver.hir
+output/rustc: $(RUSTCSRC)src/rustc/rustc.rs output/librustc.hir output/librustc_driver.hir
@echo "--- [MRUSTC] $@"
@mkdir -p output/
@rm -f $@
- $(DBG) $(BIN) $< -o $@.c $(PIPECMD)
+ $(DBG) $(BIN) $< -o $@ $(PIPECMD)
# # HACK: Work around gdb returning success even if the program crashed
- @test -e $@.c
+ @test -e $@
$(RUSTCSRC): rust-nightly-date
@export DL_RUST_DATE=$$(cat rust-nightly-date); \