mariadb/BUILD/compile-pentium-gcov

31 lines
751 B
Text
Raw Normal View History

#! /bin/sh
2000-07-31 21:29:14 +02:00
2006-10-16 18:57:33 +02:00
# Need to disable ccache, or we loose the gcov-needed compiler output files.
USING_GCOV=1
2006-10-16 18:57:33 +02:00
CCACHE_GCOV_VERSION_ENABLED=0
if ccache -V > /dev/null 2>&1
then
CCACHE_VER=`ccache -V | head -1 | sed s/"ccache version "//`
if test "$CCACHE_VER" == "2.4-gcov"
then
CCACHE_GCOV_VERSION_ENABLED=1
else
CCACHE_DISABLE=1
export CCACHE_DISABLE
2006-10-16 18:57:33 +02:00
fi
fi
export CCACHE_GCOV_VERSION_ENABLED
path=`dirname $0`
. "$path/SETUP.sh"
2000-07-31 21:29:14 +02:00
2007-08-22 20:02:23 +02:00
export LDFLAGS="$gcov_link_flags"
2006-05-22 17:15:49 +02:00
2007-08-22 20:02:23 +02:00
extra_flags="$pentium_cflags $debug_cflags $max_cflags $gcov_compile_flags"
c_warnings="$c_warnings $debug_extra_warnings"
cxx_warnings="$cxx_warnings $debug_extra_warnings"
2007-08-22 20:02:23 +02:00
extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs"
2000-12-07 16:38:46 +01:00
. "$path/FINISH.sh"