aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-25 14:20:28 -0700
committerPatrick Walton <[email protected]>2011-04-25 14:20:28 -0700
commit3f77e7df6dc2eabd47f3708cacc4124d43e79c77 (patch)
treebe4cfbb4859f6c1a606a1a270acd172a8e0f6671
parentrustc: Add a -save-temps option to save bitcode and write output simultaneous... (diff)
downloadrust-3f77e7df6dc2eabd47f3708cacc4124d43e79c77.tar.xz
rust-3f77e7df6dc2eabd47f3708cacc4124d43e79c77.zip
rustc: Add a SAVE_TEMPS option to the Makefile for use when debugging stage1 and test cases
-rw-r--r--Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index fe591087..160dc8c6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -21,6 +21,10 @@ else
CFG_RUSTC_FLAGS := -nowarn -O
endif
+ifdef SAVE_TEMPS
+ CFG_RUSTC_FLAGS += -save-temps
+endif
+
# On Darwin, we need to run dsymutil so the debugging information ends
# up in the right place. On other platforms, it automatically gets
# embedded into the executable, so use a no-op command.