1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-29 01:49:22 +03:00

too bleeding edge to be useful with gcc-3.2 and 3.3, Daniel

This commit is contained in:
Daniel Veillard
2004-06-27 14:29:36 +00:00
parent 577d145b8e
commit 0f59a3415c

View File

@ -62,24 +62,25 @@ at parse time or later once the document has been modified.
%build
#
# try to use compiler profiling, based on Arjan van de Ven <arjanv@redhat.com>
# initial test spec
# initial test spec. This really doesn't work okay for most tests done.
#
GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'`
if [ $GCC_VERSION -eq 32 ]
then
PROF_GEN='-fprofile-arcs'
PROF_USE='-fbranch-probabilities'
else if [ $GCC_VERSION -eq 33 ]
then
PROF_GEN='-fprofile-arcs'
PROF_USE='-fbranch-probabilities -ftracer'
else if [ $GCC_VERSION -ge 34 ]
#if [ $GCC_VERSION -eq 32 ]
#then
# PROF_GEN='-fprofile-arcs'
# PROF_USE='-fbranch-probabilities'
#else if [ $GCC_VERSION -eq 33 ]
#then
# PROF_GEN='-fprofile-arcs'
# PROF_USE='-fbranch-probabilities -ftracer'
#else
if [ $GCC_VERSION -ge 34 ]
then
PROF_GEN='-fprofile-generate'
PROF_USE='-fprofile-use'
fi
fi
fi
#fi
#fi
if [ "$PROF_GEN" != "" ]
then