Do not force gcc options on non-gcc compilers
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 13 Jun 2019 21:01:35 +0000 (23:01 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2019 21:01:35 +0000 (23:01 +0200)
fixes compile failure with pgi 18.10 as reported on OpenBLAS-users

Makefile.x86_64

index 1b7fe3e..d236450 100644 (file)
@@ -28,11 +28,15 @@ endif
 ifeq ($(CORE), HASWELL)
 ifndef DYNAMIC_ARCH
 ifndef NO_AVX2
+ifeq ($(C_COMPILER), GCC)
 CCOMMON_OPT += -mavx2
+endif
+ifeq $(F_COMPILER), GFORTRAN)
 FCOMMON_OPT += -mavx2
 endif
 endif
 endif
+endif