COMP: only compile wmake toolchain for host when cross-compiling

- no use having wmkdepend on the target architecture when it will only
  be needed on the host architecture.
This commit is contained in:
Mark Olesen 2019-06-09 19:21:27 +02:00 committed by Andrew Heather
parent e02ed85637
commit 53b88d99a3
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@ command -v mpirun 2>/dev/null || true
echo "========================================"
date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown"
echo "Starting compile ${WM_PROJECT_DIR##*/} ${0##*}"
echo "Starting compile ${WM_PROJECT_DIR##*/} ${0##*/}"
echo " $WM_COMPILER $WM_COMPILER_TYPE compiler"
echo " ${WM_OPTIONS}, with ${WM_MPLIB} ${FOAM_MPI}"
echo "========================================"

View File

@ -7,9 +7,6 @@ then
export WM_DIR
fi
# Compile wmake toolchain
make
case "$WM_COMPILER" in
Mingw*)
# Host wmake toolchain with system gcc (when cross-compiling)
@ -17,6 +14,11 @@ Mingw*)
WM_COMPILER=Gcc WM_COMPILER_TYPE=system \
WMAKE_BIN="${WM_DIR}/platforms/${WM_ARCH}${WM_COMPILER}"
;;
*)
# Compile wmake toolchain
make
;;
esac
#------------------------------------------------------------------------------