mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
build: Add --enable-helgrind option
This commit is contained in:
parent
a04127d291
commit
8a32f8efe5
3
configure
vendored
3
configure
vendored
@ -274,7 +274,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
opt sharedstd 1 "build libstd as a shared library"
|
opt sharedstd 1 "build libstd as a shared library"
|
||||||
opt valgrind 1 "run tests with valgrind"
|
opt valgrind 1 "run tests with valgrind (memcheck by default)"
|
||||||
|
opt helgrind 0 "run tests with helgrind instead of memcheck"
|
||||||
opt docs 1 "build documentation"
|
opt docs 1 "build documentation"
|
||||||
opt optimize 1 "build optimized rust code"
|
opt optimize 1 "build optimized rust code"
|
||||||
opt optimize-cxx 1 "build optimized C++ code"
|
opt optimize-cxx 1 "build optimized C++ code"
|
||||||
|
@ -162,11 +162,16 @@ ifdef CFG_UNIXY
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef CFG_VALGRIND
|
ifdef CFG_VALGRIND
|
||||||
CFG_VALGRIND += --leak-check=full \
|
CFG_VALGRIND += --error-exitcode=100 \
|
||||||
--error-exitcode=100 \
|
|
||||||
--quiet \
|
--quiet \
|
||||||
--suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \
|
--suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \
|
||||||
$(OS_SUPP)
|
$(OS_SUPP)
|
||||||
|
ifdef CFG_ENABLE_HELGRIND
|
||||||
|
CFG_VALGRIND += --tool=helgrind
|
||||||
|
else
|
||||||
|
CFG_VALGRIND += --tool=memcheck \
|
||||||
|
--leak-check=full
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user