From 97762234f9517f1ae90fc97a4456cd0923c30319 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 29 Nov 2019 23:47:23 +0100 Subject: [PATCH] Add variable for gcc >=9 test used in KERNEL.POWER9 --- kernel/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/Makefile b/kernel/Makefile index e81225075..9b468a6af 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -5,6 +5,11 @@ endif TOPDIR = .. include $(TOPDIR)/Makefile.system + +ifeq ($(C_COMPILER), GCC) +GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9) +endif + AVX2OPT = ifeq ($(C_COMPILER), GCC) # AVX2 support was added in 4.7.0