GCC did not support -mtune for ARM64 before 5.1
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 23 Jul 2021 11:42:52 +0000 (13:42 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Jul 2021 11:42:52 +0000 (13:42 +0200)
Makefile.arm64

index c23a087..2656a17 100644 (file)
@@ -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