File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ include $(TOPDIR)/Makefile.system
8
8
9
9
ifeq ($(C_COMPILER ) , GCC)
10
10
GCCVERSIONGTEQ9 := $(shell expr `$(CC ) -dumpversion | cut -f1 -d.` \>= 9)
11
+ GCCVERSIONGTEQ10 := $(shell expr `$(CC ) -dumpversion | cut -f1 -d.` \>= 10)
11
12
endif
12
13
13
14
ifeq ($(ARCH ) , power)
38
39
39
40
ifdef TARGET_CORE
40
41
ifeq ($(TARGET_CORE ) , COOPERLAKE)
41
- override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE ) -march=cooperlake
42
+ override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE )
43
+ ifeq ($(GCCVERSIONGTEQ10, 1)
44
+ override CFLAGS += -march=cooperlake
45
+ else
46
+ override CFLAGS += -march=skylake-avx512
47
+ endif
42
48
ifeq ($(OSNAME), CYGWIN_NT)
43
49
override CFLAGS += -fno-asynchronous-unwind-tables
44
50
endif
You can’t perform that action at this time.
0 commit comments