File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 34
34
# platform-specific auto-configuration
35
35
include $(CFG_SRC_DIR ) /mk/platform.mk
36
36
37
+ # Run the stage1/2 compilers under valgrind
38
+ ifdef VALGRIND_COMPILE
39
+ CFG_VALGRIND_COMPILE :=$(CFG_VALGRIND )
40
+ else
41
+ CFG_VALGRIND_COMPILE :=
42
+ endif
43
+
37
44
CFG_RUNTIME :=$(call CFG_LIB_NAME,rustrt)
38
45
CFG_RUSTLLVM :=$(call CFG_LIB_NAME,rustllvm)
39
46
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
@@ -107,9 +114,11 @@ VPATH := $(S)doc $(S)src
107
114
STAGE0 := $(Q )$(call CFG_RUN_TARG,stage0,\
108
115
stage0/rustc$(X ) $(CFG_RUSTC_FLAGS ) -L stage1)
109
116
STAGE1 := $(Q )$(call CFG_RUN_TARG,stage1, \
110
- stage1/rustc$(X ) $(CFG_RUSTC_FLAGS ) -L stage2)
117
+ $(CFG_VALGRIND_COMPILE ) stage1/rustc$(X ) \
118
+ $(CFG_RUSTC_FLAGS ) -L stage2)
111
119
STAGE2 := $(Q )$(call CFG_RUN_TARG,stage2, \
112
- stage2/rustc$(X ) $(CFG_RUSTC_FLAGS ) -L stage3)
120
+ $(CFG_VALGRIND_COMPILE ) stage2/rustc$(X ) \
121
+ $(CFG_RUSTC_FLAGS ) -L stage3)
113
122
114
123
# "Source" files we generate in builddir along the way.
115
124
GENERATED :=
You can’t perform that action at this time.
0 commit comments