Debian Codegraph @

BUILD/compile-pentium32-gcov

raw
1 #! /bin/sh
2
3 # Copyright (C) 2000, 2007 MySQL AB
4 # Use is subject to license terms
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; version 2 of the License.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
17
18 # Need to disable ccache, or we loose the gcov-needed compiler output files.
19
20 USING_GCOV=1
21 CCACHE_GCOV_VERSION_ENABLED=0
22 if ccache -V > /dev/null 2>&1
23 then
24 CCACHE_VER=`ccache -V | head -1 | sed s/"ccache version "//`
25 if test "$CCACHE_VER" == "2.4-gcov"
26 then
27 CCACHE_GCOV_VERSION_ENABLED=1
28 else
29 CCACHE_DISABLE=1
30 export CCACHE_DISABLE
31 fi
32 fi
33 export CCACHE_GCOV_VERSION_ENABLED
34
35 path=`dirname $0`
36 . "$path/SETUP.sh"
37
38 export LDFLAGS="$gcov_link_flags"
39
40 extra_flags="$pentium_cflags $debug_cflags $max_cflags $gcov_compile_flags"
41 c_warnings="$c_warnings $debug_extra_warnings"
42 cxx_warnings="$cxx_warnings $debug_extra_warnings"
43 extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs $disable_64_bit_plugins"
44
45 . "$path/FINISH.sh"