[zsh] add support for new icc

This commit is contained in:
David Majnemer 2010-11-15 19:25:22 -06:00
parent 887624bac2
commit 153600a594

View file

@ -15,6 +15,17 @@ if [ -d "/opt/intel/Compiler" ] ; then
esac
fi
elif [ -d "/opt/intel" ] ; then
if [ -e "/opt/intel/bin/compilervars.sh" ] ; then
iccvars_path="/opt/intel/bin/compilervars.sh"
case `uname -m` in
x86_64)
. $iccvars_path intel64
;;
i*86)
. $iccvars_path ia32
;;
esac
else
if [ -d "/opt/intel/cc" ] || [ -d "/opt/intel/cce" ] ; then
iccvars_path=$(echo /opt/intel/cc*/(10|9).*/bin/iccvars.sh(On[1]))
if [ -r $iccvars_path ] ; then
@ -67,12 +78,13 @@ elif [ -d "/opt/intel" ] ; then
;;
esac
done
if [ -n "${ippvars_path}" ] ; then
if [ -e "${ippvars_path}" ] ; then
. $ippvars_path
fi
fi
fi
if [ -f "/opt/intel/vtune/bin/vtunevars.sh" ] ; then
if [ -f "/opt/intel/vtune/bin/vtunevars.sh" ] ; then
. /opt/intel/vtune/bin/vtunevars.sh
fi
fi
fi