summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 11:28:36 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 11:28:36 +0800
commitd8c8d81be50e02c86ceef0a3ac42d0d2b78ca630 (patch)
treeda6c05b8afbb07736680562c752d6f7d6973876c
parentada1ad7cd74dd65b035e388fa2a27a835131cf13 (diff)
downloadmrust-d8c8d81be50e02c86ceef0a3ac42d0d2b78ca630.tar.gz
Makefile - (minor) Delete output file to work around GDB quirk
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 42ac3e7b..098a01cd 100644
--- a/Makefile
+++ b/Makefile
@@ -93,12 +93,14 @@ RUSTCSRC := ./rustc-nightly/
output/lib%.hir: $(RUSTCSRC)src/lib%/lib.rs $(BIN)
@echo "--- [MRUSTC] $@"
@mkdir -p output/
+ @rm -f $@
$(DBG) $(BIN) $< -o $@ $(PIPECMD)
# # HACK: Work around gdb returning success even if the program crashed
@test -e $@
output/lib%.hir: $(RUSTCSRC)src/lib%/src/lib.rs $(BIN)
@echo "--- [MRUSTC] $@"
@mkdir -p output/
+ @rm -f $@
$(DBG) $(BIN) $< -o $@ $(PIPECMD)
# # HACK: Work around gdb returning success even if the program crashed
@test -e $@