Skip to content

Commit

Permalink
build: Add --enable-helgrind option
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 2, 2012
1 parent a04127d commit 8a32f8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ else
fi

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 optimize 1 "build optimized rust code"
opt optimize-cxx 1 "build optimized C++ code"
Expand Down
9 changes: 7 additions & 2 deletions mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,16 @@ ifdef CFG_UNIXY
endif
endif
ifdef CFG_VALGRIND
CFG_VALGRIND += --leak-check=full \
--error-exitcode=100 \
CFG_VALGRIND += --error-exitcode=100 \
--quiet \
--suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \
$(OS_SUPP)
ifdef CFG_ENABLE_HELGRIND
CFG_VALGRIND += --tool=helgrind
else
CFG_VALGRIND += --tool=memcheck \
--leak-check=full
endif
endif
endif

Expand Down

0 comments on commit 8a32f8e

Please sign in to comment.