Do not force gcc options on non-gcc compilers

fixes compile failure with pgi 18.10 as reported on OpenBLAS-users
This commit is contained in:
Martin Kroeker 2019-06-13 23:01:35 +02:00 committed by GitHub
parent ece0bfb881
commit d9ff2cd90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -28,11 +28,15 @@ endif
ifeq ($(CORE), HASWELL) ifeq ($(CORE), HASWELL)
ifndef DYNAMIC_ARCH ifndef DYNAMIC_ARCH
ifndef NO_AVX2 ifndef NO_AVX2
ifeq ($(C_COMPILER), GCC)
CCOMMON_OPT += -mavx2 CCOMMON_OPT += -mavx2
endif
ifeq $(F_COMPILER), GFORTRAN)
FCOMMON_OPT += -mavx2 FCOMMON_OPT += -mavx2
endif endif
endif endif
endif endif
endif