mirror of https://github.com/madler/zlib
Use name in GCC_CLASSIC as C compiler for coverage testing, if set.
Apple removed support for gcov in the default gcc compiler chain, when they moved to llvm. This can be circumvented in XCode 4.2 by using the gcc chain with gcc-4.2. This patch allows setting GCC_CLASSIC to the name of a real gcc executable (e.g. "gcc-4.2") to allow coverage testing.
This commit is contained in:
parent
f9e4edc996
commit
2dadd2fab4
|
@ -416,6 +416,9 @@ fi
|
||||||
|
|
||||||
if test $cover -eq 1; then
|
if test $cover -eq 1; then
|
||||||
CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
|
CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
|
||||||
|
if test -n "$GCC_CLASSIC"; then
|
||||||
|
CC=$GCC_CLASSIC
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo >> configure.log
|
echo >> configure.log
|
||||||
|
|
Loading…
Reference in New Issue