use only gcc for elpa

This commit is contained in:
edoapra 2022-01-17 21:23:31 -08:00
parent c382cd3f50
commit 668e225063
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -148,7 +148,7 @@ if [[ -z "$USE_INTERNALBLAS" ]]; then
GFORTRAN_EXTRA=$(echo $FC | cut -c 1-8)
if [[ ${FC} == gfortran ]] || [[ ${GFORTRAN_EXTRA} == gfortran ]] ; then
# if [[ ${FC} == gfortran ]] ; then
if [[ `${CC} -dM -E - < /dev/null 2> /dev/null | grep -c GNU` > 0 ]] && [[ "$(expr `${CC} -dumpversion | cut -f1 -d.` \> 7)" == 1 ]]; then
if [[ `${CC} -dM -E - < /dev/null 2> /dev/null | grep -c clang` == 0 ]] && [[ `${CC} -dM -E - < /dev/null 2> /dev/null | grep -c GNU` > 0 ]] && [[ "$(expr `${CC} -dumpversion | cut -f1 -d.` \> 7)" == 1 ]]; then
if [[ "$arch" == "x86_64" ]]; then
if [[ ! -z "$BUILD_OPENBLAS" ]]; then
export BUILD_ELPA=1