From 6978fa626d45fa1bef92aa27e6067d2b369e6552 Mon Sep 17 00:00:00 2001 From: edoapra Date: Wed, 7 Sep 2022 11:07:11 -0700 Subject: [PATCH] force icc on macos to cross-compile x86 on arm64 --- travis/nwchem.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/travis/nwchem.bashrc b/travis/nwchem.bashrc index dcfb55979b..19c8eb9d65 100644 --- a/travis/nwchem.bashrc +++ b/travis/nwchem.bashrc @@ -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