Update Makefile.arm64
authorNoan <66834344+dnoan@users.noreply.github.com>
Sun, 16 May 2021 09:49:13 +0000 (09:49 +0000)
committerGitHub <noreply@github.com>
Sun, 16 May 2021 09:49:13 +0000 (09:49 +0000)
Added -march and -mtune flags for EMAG processors when GCC 9 or later

Makefile.arm64

index 23362b4..3858d7e 100644 (file)
@@ -107,4 +107,13 @@ FCOMMON_OPT += -march=armv8.2-a -mtune=tsv110
 endif
 endif
 endif
+
+ifeq ($(GCCVERSIONGTEQ9), 1)
+ifeq ($(CORE), EMAG8180)
+CCOMMON_OPT += -march=armv8-a -mtune=emag
+ifneq ($(F_COMPILER), NAG)
+FCOMMON_OPT += -march=armv8-a -mtune=emag
+endif
+endif
+endif
 endif