Skip to content

Commit 2824209

Browse files
authored
Merge pull request #2928 from martin-frbg/issue2917
Enable -mavx2 for flang as well where supported
2 parents 2966845 + 0081336 commit 2824209

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)