Skip to content

Commit 6d071f1

Browse files
authored
Merge pull request #4826 from Mousius/a64fx-fallback
Add fallback compile options for A64FX target
2 parents 05bf35f + 3ed226d commit 6d071f1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile.arm64

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,19 @@ endif
276276
endif
277277
endif
278278

279-
ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
280279
ifeq ($(CORE), A64FX)
280+
ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
281+
ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ3) $(ISCLANG)))
281282
CCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
282283
ifneq ($(F_COMPILER), NAG)
283284
FCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
284285
endif
286+
else
287+
CCOMMON_OPT += -march=armv8.4-a+sve -mtune=neoverse-n1
288+
ifneq ($(F_COMPILER), NAG)
289+
FCOMMON_OPT += -march=armv8.4-a -mtune=neoverse-n1
290+
endif
291+
endif
285292
endif
286293
endif
287294

0 commit comments

Comments
 (0)