From e3d3aaadaa94f4eb7a4dceb96f610542ca7574ce Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 26 Aug 2011 11:11:49 -0700 Subject: [PATCH] Don't run the stage0 compiler under valgrind when CFG_VALGRIND_COMPILE There's nothing to be done for stage0 at this point. --- Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index d1137b6fe5a5..dbd98a31c00f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -186,8 +186,15 @@ SREQ$(1) = stage$(1)/rustc$(X) \ $$(MKFILES) endif +ifeq ($(1),0) +# Don't run the the stage0 compiler under valgrind - that ship has sailed +CFG_VALGRIND_COMPILE$(1) = +else +CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE) +endif + STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \ - $$(CFG_VALGRIND_COMPILE) stage$(1)/rustc$$(X) \ + $$(CFG_VALGRIND_COMPILE$(1)) stage$(1)/rustc$$(X) \ $$(CFG_RUSTC_FLAGS)) endef