Browse Source

-march=cooperlake only available in gcc >= 10

tags/v0.3.11^2
Martin Kroeker GitHub 5 years ago
parent
commit
81fbe8d088
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      kernel/Makefile

+ 7
- 1
kernel/Makefile View File

@@ -8,6 +8,7 @@ include $(TOPDIR)/Makefile.system

ifeq ($(C_COMPILER), GCC)
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
GCCVERSIONGTEQ10 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 10)
endif

ifeq ($(ARCH), power)
@@ -38,7 +39,12 @@ endif

ifdef TARGET_CORE
ifeq ($(TARGET_CORE), COOPERLAKE)
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=cooperlake
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
ifeq ($(GCCVERSIONGTEQ10, 1)
override CFLAGS += -march=cooperlake
else
override CFLAGS += -march=skylake-avx512
endif
ifeq ($(OSNAME), CYGWIN_NT)
override CFLAGS += -fno-asynchronous-unwind-tables
endif


Loading…
Cancel
Save