Skip to content

Commit 0081336

Browse files
authored
Enable -mavx2 for flang as well
1 parent 336e354 commit 0081336

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
@@ -90,6 +90,10 @@ GCCMINORVERSIONGTEQ7 := $(shell expr `$(FC) -dumpversion | cut -f2 -d.` \>= 7)
9090
ifeq ($(GCCVERSIONGTEQ4)$(GCCMINORVERSIONGTEQ7), 11)
9191
FCOMMON_OPT += -mavx2
9292
endif
93+
else
94+
ifeq ($(F_COMPILER), FLANG)
95+
FCOMMON_OPT += -mavx2
96+
endif
9397
endif
9498
endif
9599
endif

0 commit comments

Comments
 (0)