Add variable for gcc >=9 test
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 29 Nov 2019 22:47:23 +0000 (23:47 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2019 22:47:23 +0000 (23:47 +0100)
used in KERNEL.POWER9

kernel/Makefile

index e812250..9b468a6 100644 (file)
@@ -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