Merge pull request #3323 from martin-frbg/issue3322

GCC did not support -mtune for ARM64 before 5.1
This commit is contained in:
Martin Kroeker 2021-07-23 22:46:02 +02:00 committed by GitHub
commit 5a2fe5bfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View 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