Test harness: adjustments to compiler related environment variables
This commit is contained in:
parent
72b46f4b80
commit
4dba7ce12b
2 changed files with 32 additions and 21 deletions
40
etc/bashrc
40
etc/bashrc
|
@ -247,25 +247,27 @@ Darwin)
|
||||||
# Make sure that binaries use the best features of the used OS-Version
|
# Make sure that binaries use the best features of the used OS-Version
|
||||||
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`
|
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`
|
||||||
|
|
||||||
# Use Mac-Ports-Compiler instead of Apple-gcc-4.2
|
if [ "$compilerInstall" == "System" ]
|
||||||
case $WM_COMPILER in
|
then
|
||||||
Gcc43)
|
# Use Mac-Ports-Compiler instead of Apple-gcc-4.2
|
||||||
export WM_CC='gcc-mp-4.3'
|
case $WM_COMPILER in
|
||||||
export WM_CXX='g++-mp-4.3'
|
Gcc43)
|
||||||
;;
|
export WM_CC='gcc-mp-4.3'
|
||||||
Gcc44)
|
export WM_CXX='g++-mp-4.3'
|
||||||
export WM_CC='gcc-mp-4.4'
|
;;
|
||||||
export WM_CXX='g++-mp-4.4'
|
Gcc44)
|
||||||
;;
|
export WM_CC='gcc-mp-4.4'
|
||||||
Gcc45)
|
export WM_CXX='g++-mp-4.4'
|
||||||
export WM_CC='gcc-mp-4.5'
|
;;
|
||||||
export WM_CXX='g++-mp-4.5'
|
Gcc45)
|
||||||
;;
|
export WM_CC='gcc-mp-4.5'
|
||||||
*)
|
export WM_CXX='g++-mp-4.5'
|
||||||
export WM_COMPILER=
|
;;
|
||||||
;;
|
*)
|
||||||
esac
|
export WM_COMPILER=
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
SunOS)
|
SunOS)
|
||||||
|
|
|
@ -120,8 +120,12 @@ unset compilerBin compilerLib
|
||||||
# Select compiler installation
|
# Select compiler installation
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# compilerInstall = OpenFOAM | System
|
# compilerInstall = OpenFOAM | System
|
||||||
|
#
|
||||||
|
# We can override the value of compilerInstall from prefs.sh
|
||||||
|
: ${compilerInstall:=System}
|
||||||
|
|
||||||
#compilerInstall=OpenFOAM
|
#compilerInstall=OpenFOAM
|
||||||
compilerInstall=System
|
#compilerInstall=System
|
||||||
|
|
||||||
case "${compilerInstall:-OpenFOAM}" in
|
case "${compilerInstall:-OpenFOAM}" in
|
||||||
OpenFOAM)
|
OpenFOAM)
|
||||||
|
@ -131,6 +135,11 @@ OpenFOAM)
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
;;
|
;;
|
||||||
|
Gcc44)
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS/etc/gcc-4.4.5.sh
|
||||||
|
;;
|
||||||
Gcc43)
|
Gcc43)
|
||||||
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH
|
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
|
@ -167,7 +176,7 @@ unset compilerBin compilerLib compilerInstall
|
||||||
|
|
||||||
|
|
||||||
case "$WM_COMPILER" in
|
case "$WM_COMPILER" in
|
||||||
Gcc)
|
Gcc*)
|
||||||
export WM_CC='gcc'
|
export WM_CC='gcc'
|
||||||
export WM_CXX='g++'
|
export WM_CXX='g++'
|
||||||
;;
|
;;
|
||||||
|
|
Reference in a new issue