Make Sun Studio 12.4 default compiler for testing

pull/200/head
Jeffrey Walton 2016-06-15 03:55:49 -04:00
parent 5ae5127f7c
commit 6f15b37494
1 changed files with 5 additions and 5 deletions

View File

@ -101,12 +101,12 @@ if [ "$CXX" == "gcc" ]; then
CXX=g++ CXX=g++
fi fi
# Fixup # Fixup. See if the user already set it to CC
if [ "$IS_SOLARIS" -ne "0" ]; then if [ "$IS_SOLARIS" -ne "0" ] && [ $(echo $CXX | grep -c "CC" 2>/dev/null) -ne "0" ]; then
if [ -e "/opt/solarisstudio12.3/bin/CC" ]; then if [ -e "/opt/solarisstudio12.4/bin/CC" ]; then
CXX=/opt/solarisstudio12.3/bin/CC
elif [ -e "/opt/solarisstudio12.4/bin/CC" ]; then
CXX=/opt/solarisstudio12.4/bin/CC CXX=/opt/solarisstudio12.4/bin/CC
elif [ -e "/opt/solarisstudio12.3/bin/CC" ]; then
CXX=/opt/solarisstudio12.3/bin/CC
fi fi
fi fi
SUN_COMPILER=$($CXX -V 2>&1 | $EGREP -i -c "CC: Sun") SUN_COMPILER=$($CXX -V 2>&1 | $EGREP -i -c "CC: Sun")