about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-04-25 14:20:28 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-04-25 14:20:28 -0700
commit3f77e7df6dc2eabd47f3708cacc4124d43e79c77 (patch)
treebe4cfbb4859f6c1a606a1a270acd172a8e0f6671
parente0479c902b0b5a5c521ce4d3bc38c937a80faf21 (diff)
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 fe59108722e..160dc8c6a21 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.