Apply:
3413 Davi Arnaut 2010-06-03 Don't enable safemalloc for valgrind builds, it's too slow. to trunk-runtime.
This commit is contained in:
parent
1398a1a990
commit
69f8e58821
@ -122,7 +122,7 @@ fi
|
|||||||
# Override -DFORCE_INIT_OF_VARS from debug_cflags. It enables the macro
|
# Override -DFORCE_INIT_OF_VARS from debug_cflags. It enables the macro
|
||||||
# LINT_INIT(), which is only useful for silencing spurious warnings
|
# LINT_INIT(), which is only useful for silencing spurious warnings
|
||||||
# of static analysis tools. We want LINT_INIT() to be a no-op in Valgrind.
|
# of static analysis tools. We want LINT_INIT() to be a no-op in Valgrind.
|
||||||
valgrind_flags="-UFORCE_INIT_OF_VARS -DHAVE_purify "
|
valgrind_flags="-USAFEMALLOC -UFORCE_INIT_OF_VARS -DHAVE_purify "
|
||||||
valgrind_flags="$valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
|
valgrind_flags="$valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
|
||||||
valgrind_configs="--with-valgrind"
|
valgrind_configs="--with-valgrind"
|
||||||
#
|
#
|
||||||
|
@ -1010,7 +1010,7 @@ set_ccache_usage()
|
|||||||
set_valgrind_flags()
|
set_valgrind_flags()
|
||||||
{
|
{
|
||||||
if test "x$valgrind_flag" = "xyes" ; then
|
if test "x$valgrind_flag" = "xyes" ; then
|
||||||
loc_valgrind_flags="-UFORCE_INIT_OF_VARS -DHAVE_purify "
|
loc_valgrind_flags="-USAFEMALLOC -UFORCE_INIT_OF_VARS -DHAVE_purify "
|
||||||
loc_valgrind_flags="$loc_valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
|
loc_valgrind_flags="$loc_valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
|
||||||
compiler_flags="$compiler_flags $loc_valgrind_flags"
|
compiler_flags="$compiler_flags $loc_valgrind_flags"
|
||||||
with_flags="$with_flags --with-valgrind"
|
with_flags="$with_flags --with-valgrind"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user