2000-12-18 22:24:19 +01:00
|
|
|
#! /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.
|
|
|
|
|
2007-01-29 00:47:35 +01:00
|
|
|
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
|
2006-11-28 22:31:05 +01:00
|
|
|
else
|
|
|
|
CCACHE_DISABLE=1
|
|
|
|
export CCACHE_DISABLE
|
2006-10-16 18:57:33 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export CCACHE_GCOV_VERSION_ENABLED
|
|
|
|
|
2000-12-18 22:24:19 +01:00
|
|
|
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"
|
2007-01-27 02:46:45 +01:00
|
|
|
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
|
|
|
|
2000-12-18 22:24:19 +01:00
|
|
|
. "$path/FINISH.sh"
|