Browse Source

Merge pull request #4826 from Mousius/a64fx-fallback

Add fallback compile options for A64FX target
tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
6d071f1a1c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      Makefile.arm64

+ 8
- 1
Makefile.arm64 View File

@@ -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



Loading…
Cancel
Save