printinfo: display version of correct compiler if CC does not point to gcc

[skip ci]
This commit is contained in:
Steffen Jaeckel 2014-05-05 10:49:29 +02:00
parent be5418368c
commit f9a1041222

View File

@ -12,5 +12,9 @@ echo "Testing version:" $version
echo "uname="`uname -a`
# get gcc name
echo "gcc="`gcc -dumpversion`
if [ -z ${CC} ]
then
CC="gcc"
fi
echo "${CC}="`${CC} -dumpversion`
echo