Skip to content

Commit 9776223

Browse files
authored
Add variable for gcc >=9 test
used in KERNEL.POWER9
1 parent 948d11f commit 9776223

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ endif
55
TOPDIR = ..
66
include $(TOPDIR)/Makefile.system
77

8+
9+
ifeq ($(C_COMPILER), GCC)
10+
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
11+
endif
12+
813
AVX2OPT =
914
ifeq ($(C_COMPILER), GCC)
1015
# AVX2 support was added in 4.7.0

0 commit comments

Comments
 (0)