2002-10-29 21:59:03 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
path=`dirname $0`
|
|
|
|
. "$path/SETUP.sh"
|
|
|
|
|
2005-01-19 10:24:51 -08:00
|
|
|
extra_flags="$pentium_cflags $debug_cflags $max_cflags -USAFEMALLOC -UFORCE_INIT_OF_VARS -DHAVE_purify -DMYSQL_SERVER_SUFFIX=-valgrind-max"
|
2002-10-29 21:59:03 +02:00
|
|
|
c_warnings="$c_warnings $debug_extra_warnings"
|
|
|
|
cxx_warnings="$cxx_warnings $debug_extra_warnings"
|
|
|
|
extra_configs="$pentium_configs $debug_configs"
|
|
|
|
|
2003-11-18 13:47:27 +02:00
|
|
|
# We want to test isam when building with valgrind
|
2005-01-13 09:05:23 -08:00
|
|
|
extra_configs="$extra_configs $max_leave_isam_configs --with-isam"
|
2002-10-29 21:59:03 +02:00
|
|
|
|
|
|
|
. "$path/FINISH.sh"
|
2003-09-30 00:08:12 +02:00
|
|
|
|
2003-10-08 21:50:05 +03:00
|
|
|
if test -z "$just_print"
|
|
|
|
then
|
2003-11-04 14:59:38 +02:00
|
|
|
set +v +x
|
2003-10-08 21:50:05 +03:00
|
|
|
echo "\
|
|
|
|
******************************************************************************
|
2003-09-30 00:08:12 +02:00
|
|
|
Note that by default BUILD/compile-pentium-valgrind-max calls 'configure' with
|
|
|
|
--enable-assembler. When Valgrind detects an error involving an assembly
|
2003-10-08 21:50:05 +03:00
|
|
|
function (for example an uninitialized value used as an argument of an
|
|
|
|
assembly function), Valgrind will not print the stacktrace and 'valgrind
|
|
|
|
--gdb-attach=yes' will not work either. If you need a stacktrace in those
|
|
|
|
cases, you have to run BUILD/compile-pentium-valgrind-max with the
|
|
|
|
--disable-assembler argument.
|
|
|
|
******************************************************************************"
|
|
|
|
fi
|