From 32264ba496e49f774a4fe3d63ff06cac6d37ef62 Mon Sep 17 00:00:00 2001 From: Noan <66834344+dnoan@users.noreply.github.com> Date: Sun, 16 May 2021 09:49:13 +0000 Subject: [PATCH] Update Makefile.arm64 Added -march and -mtune flags for EMAG processors when GCC 9 or later --- Makefile.arm64 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.arm64 b/Makefile.arm64 index 23362b4..3858d7e 100644 --- a/Makefile.arm64 +++ b/Makefile.arm64 @@ -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 -- 2.7.4