Skip to content

Commit e3d3aaa

Browse files
committed
Don't run the stage0 compiler under valgrind when CFG_VALGRIND_COMPILE
There's nothing to be done for stage0 at this point.
1 parent 4133e3e commit e3d3aaa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,15 @@ SREQ$(1) = stage$(1)/rustc$(X) \
186186
$$(MKFILES)
187187
endif
188188

189+
ifeq ($(1),0)
190+
# Don't run the the stage0 compiler under valgrind - that ship has sailed
191+
CFG_VALGRIND_COMPILE$(1) =
192+
else
193+
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
194+
endif
195+
189196
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
190-
$$(CFG_VALGRIND_COMPILE) stage$(1)/rustc$$(X) \
197+
$$(CFG_VALGRIND_COMPILE$(1)) stage$(1)/rustc$$(X) \
191198
$$(CFG_RUSTC_FLAGS))
192199
endef
193200

0 commit comments

Comments
 (0)