GCC did not support -mtune for ARM64 before 5.1

This commit is contained in:
Martin Kroeker
2021-07-23 13:42:52 +02:00
committed by GitHub
parent 3a7955cd93
commit efbd7c7840

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