Skip to content

Commit d9ff2cd

Browse files
authored
Do not force gcc options on non-gcc compilers
fixes compile failure with pgi 18.10 as reported on OpenBLAS-users
1 parent ece0bfb commit d9ff2cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.x86_64

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@ endif
2828
ifeq ($(CORE), HASWELL)
2929
ifndef DYNAMIC_ARCH
3030
ifndef NO_AVX2
31+
ifeq ($(C_COMPILER), GCC)
3132
CCOMMON_OPT += -mavx2
33+
endif
34+
ifeq $(F_COMPILER), GFORTRAN)
3235
FCOMMON_OPT += -mavx2
3336
endif
3437
endif
3538
endif
39+
endif
3640

3741

3842

0 commit comments

Comments
 (0)