fix failures for macos gfortran-9

This commit is contained in:
edoapra 2023-03-23 17:57:45 -07:00
parent c7971bdc48
commit d12c2ff0ca
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -29,6 +29,13 @@ echo DISTR is "$DISTR"
# HOMEBREW_NO_AUTO_UPDATE=1 brew cask uninstall oclint || true
# HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" openblas python3 ||true
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" python3 gsed grep automake autoconf ||true
if [[ "$FC" != "gfortran" ]]; then
#install non default gfortran, ie gfortran-9
#get version
mygccver=$(echo "$FC"|cut -d - -f 2)
echo mygccver is "$mygccver"
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall gcc@"$mygccver" || true
fi
#hack to fix Github actions mpif90
gccver=`brew list --versions gcc| head -1 |cut -c 5-`
echo brew gccver is $gccver