mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
[zsh] add support for new icc
This commit is contained in:
parent
887624bac2
commit
153600a594
1 changed files with 67 additions and 55 deletions
18
zsh/intel
18
zsh/intel
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue