force icc on macos to cross-compile x86 on arm64

This commit is contained in:
edoapra 2022-09-07 11:07:11 -07:00
parent 3cd73c5204
commit 6978fa626d
No known key found for this signature in database
GPG key ID: E6E392F4E14FB937

View file

@ -64,8 +64,12 @@ if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]] ; then
# source "$IONEAPI_ROOT"/compiler/latest/env/vars.sh
source "$IONEAPI_ROOT"/setvars.sh --force
export I_MPI_F90="$FC"
#force icc on macos to cross-compile x86 on arm64
if [[ "$os" == "Darwin" ]]; then
CC=icc
fi
"$FC" -V
"$CC" -V
fi
if [[ -f "$IONEAPI_ROOT"/mpi/latest/env/vars.sh ]]; then
source "$IONEAPI_ROOT"/mpi/latest/env/vars.sh