summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13ef5e8b..c5edb114 100644
--- a/Makefile
+++ b/Makefile
@@ -160,7 +160,7 @@ output/rust/test_run-pass_hello: $(RUST_TESTS_DIR)run-pass/hello.rs output/libst
output/rust/%.o: $(RUST_TESTS_DIR)%.rs $(RUSTCSRC) $(BIN) output/libstd.hir output/libtest.hir
@mkdir -p $(dir $@)
@echo "--- TEST $(patsubst output/rust/%.o,%,$@)"
- @$(BIN) $< -o $@ --stop-after resolve > $@.txt 2>&1
+ @$(BIN) $< -o $@ --stop-after mir > $@.txt 2>&1
@touch $@
output/rust/run-pass/allocator-default.o: output/libstd.hir output/liballoc_jemalloc.hir
diff --git a/src/main.cpp b/src/main.cpp
index 2ad64c4c..f65b3c67 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -537,6 +537,8 @@ ProgramParams::ProgramParams(int argc, char *argv[])
this->last_stage = STAGE_PARSE;
else if( strcmp(arg, "resolve") == 0 )
this->last_stage = STAGE_RESOLVE;
+ else if( strcmp(arg, "mir") == 0 )
+ this->last_stage = STAGE_MIR;
else {
::std::cerr << "Unknown argument to --stop-after : '" << arg << "'" << ::std::endl;
exit(1);