From 3f77e7df6dc2eabd47f3708cacc4124d43e79c77 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 25 Apr 2011 14:20:28 -0700 Subject: rustc: Add a SAVE_TEMPS option to the Makefile for use when debugging stage1 and test cases --- Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.3