Skip to content

Commit e35576c

Browse files
authored
Merge pull request #2905 from martin-frbg/aocc-clang
Add -mavx for clang & aocc
2 parents 9789375 + f1bb85d commit e35576c

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)