Skip to content

Commit f1bb85d

Browse files
authored
Add AVX flags for clang/aocc as well
1 parent 25907e6 commit f1bb85d

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
@@ -78,6 +78,10 @@ GCCMINORVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 7)
7878
ifeq ($(GCCVERSIONGTEQ4)$(GCCMINORVERSIONGTEQ7), 11)
7979
CCOMMON_OPT += -mavx2
8080
endif
81+
else
82+
ifeq ($(C_COMPILER), CLANG)
83+
CCOMMON_OPT += -mavx2
84+
endif
8185
endif
8286
ifeq ($(F_COMPILER), GFORTRAN)
8387
# AVX2 support was added in 4.7.0

0 commit comments

Comments
 (0)