diff --git a/travis/nwchem.bashrc b/travis/nwchem.bashrc index df80a7ba23..efd4dd1406 100644 --- a/travis/nwchem.bashrc +++ b/travis/nwchem.bashrc @@ -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