Commit 80d9f838 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2036] Track origins of uninitialized memory when not running on a build machine

parent 3039e3cd
......@@ -996,10 +996,12 @@ use_valgrind_suppressions=no
if test "x$VALGRIND" != "xno" -a "x$enable_valgrind" != "xno"; then
if test "x$enable_valgrind_suppressions" != "xno"; then
VALGRIND_SUPPRESSIONS="--error-exitcode=1 --suppressions=\$(top_srcdir)/src/valgrind-suppressions --suppressions=\$(top_srcdir)/src/valgrind-suppressions.revisit"
VALGRIND_EXTRA="--error-exitcode=1 --suppressions=\$(top_srcdir)/src/valgrind-suppressions --suppressions=\$(top_srcdir)/src/valgrind-suppressions.revisit"
use_valgrind_suppressions=yes
else
VALGRIND_EXTRA="--track-origins=yes"
fi
VALGRIND_COMMAND="$VALGRIND -q --gen-suppressions=all $VALGRIND_SUPPRESSIONS --num-callers=48 --leak-check=full --fullpath-after="
VALGRIND_COMMAND="$VALGRIND -q --gen-suppressions=all $VALGRIND_EXTRA --num-callers=48 --leak-check=full --fullpath-after="
use_valgrind=yes
fi
AC_SUBST(VALGRIND_COMMAND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment