From: Martin Kroeker Date: Fri, 29 Nov 2019 22:47:23 +0000 (+0100) Subject: Add variable for gcc >=9 test X-Git-Tag: upstream/0.3.21~30^2~38^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97762234f9517f1ae90fc97a4456cd0923c30319;p=platform%2Fupstream%2Fopenblas.git Add variable for gcc >=9 test used in KERNEL.POWER9 --- diff --git a/kernel/Makefile b/kernel/Makefile index e812250..9b468a6 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