mariadb/BUILD/compile-pentium-gcov

46 lines
1.4 KiB
Text
Raw Normal View History

#! /bin/sh
2000-07-31 21:29:14 +02:00
# Copyright (C) 2000, 2007 MySQL AB
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2006-10-16 19:57:33 +03:00
# Need to disable ccache, or we loose the gcov-needed compiler output files.
USING_GCOV=1
2006-10-16 19:57:33 +03: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 19:57:33 +03: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 12:02:23 -06:00
export LDFLAGS="$gcov_link_flags"
2006-05-22 17:15:49 +02:00
2007-08-22 12:02:23 -06: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 12:02:23 -06:00
extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs"
2000-12-07 08:38:46 -07:00
. "$path/FINISH.sh"