File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 274
274
fi
275
275
276
276
opt sharedstd 1 " build libstd as a shared library"
277
- opt valgrind 1 " run tests with valgrind"
277
+ opt valgrind 1 " run tests with valgrind (memcheck by default)"
278
+ opt helgrind 0 " run tests with helgrind instead of memcheck"
278
279
opt docs 1 " build documentation"
279
280
opt optimize 1 " build optimized rust code"
280
281
opt optimize-cxx 1 " build optimized C++ code"
Original file line number Diff line number Diff line change @@ -162,11 +162,16 @@ ifdef CFG_UNIXY
162
162
endif
163
163
endif
164
164
ifdef CFG_VALGRIND
165
- CFG_VALGRIND += --leak-check=full \
166
- --error-exitcode=100 \
165
+ CFG_VALGRIND += --error-exitcode=100 \
167
166
--quiet \
168
167
--suppressions=$(CFG_SRC_DIR ) src/etc/x86.supp \
169
168
$(OS_SUPP )
169
+ ifdef CFG_ENABLE_HELGRIND
170
+ CFG_VALGRIND += --tool=helgrind
171
+ else
172
+ CFG_VALGRIND += --tool=memcheck \
173
+ --leak-check=full
174
+ endif
170
175
endif
171
176
endif
172
177
You can’t perform that action at this time.
0 commit comments