Skip to content

Commit

Permalink
Add fallback compile options for A64FX target
Browse files Browse the repository at this point in the history
  • Loading branch information
Mousius committed Jul 29, 2024
1 parent 05bf35f commit 438cfd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,18 @@ endif
endif
endif

ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
ifeq ($(CORE), A64FX)
ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ3)))
CCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
endif
else
CCOMMON_OPT += -march=armv8.4-a+sve -mtune=neoverse-n1
ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=armv8.4-a -mtune=neoverse-n1
endif
endif
endif

Expand Down

0 comments on commit 438cfd9

Please sign in to comment.