CONFIG: adjust csh compiler settings to be closer to sh version

- makes it easier to ensure consistent setups
This commit is contained in:
Mark Olesen
2016-06-16 17:22:30 +02:00
parent bbf20318e0
commit 5ac7a846ed
4 changed files with 117 additions and 63 deletions

View File

@ -86,3 +86,5 @@ OpenFOAM | ThirdParty)
;;
esac
#------------------------------------------------------------------------------

View File

@ -214,8 +214,10 @@ fi
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/compiler`
case "$WM_COMPILER_TYPE" in
system)
# Use system compiler
;;
OpenFOAM | ThirdParty)
if [ -n "$gcc_version" ]
then
gccDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version
@ -284,12 +286,15 @@ OpenFOAM | ThirdParty)
_foamAddMan $clangDir/share/man
_foamAddPath $clangDir/bin
if [ "$FOAM_VERBOSE" -a "$PS1" ]
then
echo "Using ThirdParty compiler"
echo " ${clangDir##*/}"
fi
fi
unset clang_version clangDir
;;
system)
# Use system compiler
;;
*)
echo "Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported" 1>&2
echo " treating as 'system' instead" 1>&2