Skip to content

Commit

Permalink
Merge pull request #4826 from Mousius/a64fx-fallback
Browse files Browse the repository at this point in the history
Add fallback compile options for A64FX target
  • Loading branch information
martin-frbg authored Jul 29, 2024
2 parents 05bf35f + 3ed226d commit 6d071f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,19 @@ endif
endif
endif

ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
ifeq ($(CORE), A64FX)
ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ3) $(ISCLANG)))
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
endif

Expand Down

0 comments on commit 6d071f1

Please sign in to comment.