From efbd7c7840f01f6479fb0224ff473c3166eee669 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 23 Jul 2021 13:42:52 +0200 Subject: [PATCH] GCC did not support -mtune for ARM64 before 5.1 --- Makefile.arm64 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.arm64 b/Makefile.arm64 index c23a0876e..2656a17f9 100644 --- a/Makefile.arm64 +++ b/Makefile.arm64 @@ -1,4 +1,15 @@ ifneq ($(C_COMPILER), PGI) + +ifneq ($(GCCVERSIONGT4), 1) +CCOMMON_OPT += -march=armv8-a +ifneq ($(F_COMPILER), NAG) +FCOMMON_OPT += -march=armv8-a +endif + + +else + + ifeq ($(CORE), ARMV8) CCOMMON_OPT += -march=armv8-a ifneq ($(F_COMPILER), NAG) @@ -138,4 +149,7 @@ FCOMMON_OPT += -march=armv8-a -mtune=emag endif endif endif + endif + +endif \ No newline at end of file