mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: add wmake rules for mingw (#1238)
This commit is contained in:
committed by
Andrew Heather
parent
07ec741e2a
commit
a54aff9d26
@ -227,6 +227,13 @@ setenv FOAM_RUN "$WM_PROJECT_USER_DIR/run"
|
||||
# Default to system compiler
|
||||
if (! $?WM_COMPILER_TYPE ) setenv WM_COMPILER_TYPE system
|
||||
|
||||
# Cross-compiling
|
||||
switch ("$WM_COMPILER")
|
||||
case Mingw*:
|
||||
setenv WM_OSTYPE MSwindows
|
||||
breaksw
|
||||
endsw
|
||||
|
||||
# Adjustments for non-gcc compilers
|
||||
switch ("$WM_COMPILER")
|
||||
case Clang*: # Clang compiler suite
|
||||
|
||||
@ -321,6 +321,20 @@ INTELMPI*)
|
||||
_foamAddPath "$MPI_ARCH_PATH/intel64/bin"
|
||||
_foamAddLib "$MPI_ARCH_PATH/intel64/lib"
|
||||
;;
|
||||
|
||||
MSMPI)
|
||||
export FOAM_MPI=msmpi
|
||||
_foamEtc -config mpi-msmpi # <- Adjustments (optional)
|
||||
|
||||
# Respect MPI_ARCH_PATH if set to a valid directory (eg, user adjustments)
|
||||
if [ ! -d "$MPI_ARCH_PATH" ]
|
||||
then
|
||||
export MPI_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI
|
||||
fi
|
||||
|
||||
# _foamAddPath "$MPI_ARCH_PATH/bin"
|
||||
_foamAddLib "$MPI_ARCH_PATH/lib/x64"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
@ -227,6 +227,17 @@ export FOAM_RUN="$WM_PROJECT_USER_DIR/run"
|
||||
# Default to system compiler
|
||||
: ${WM_COMPILER_TYPE:=system}; export WM_COMPILER_TYPE
|
||||
|
||||
# Cross-compiling
|
||||
case "$WM_COMPILER" in
|
||||
(Mingw*)
|
||||
export WM_OSTYPE=MSwindows
|
||||
export WM_CC="$(wmake -show-c)"
|
||||
export WM_CXX="$(wmake -show-cxx)"
|
||||
export WM_CFLAGS="$(wmake -show-cflags)"
|
||||
export WM_CXXFLAGS="$(wmake -show-cxxflags)"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Adjust for non-gcc compilers
|
||||
case "$WM_COMPILER" in
|
||||
Clang*) # Clang compiler suite
|
||||
|
||||
Reference in New Issue
Block a user