From 27be955d74e03e5db1c549367f3f784ec535f509 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 13 Jan 2017 23:11:27 +0800 Subject: Makefile - Fix rule for rustc --- Makefile | 10 +++------- 1 file 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); \ -- cgit v1.2.3