Browse Source

Merge pull request #1910 from martin-frbg/issue1909

Fix for DYNAMIC_ARCH builds made on a AVX512-capable host
tags/v0.3.5
Martin Kroeker GitHub 7 years ago
parent
commit
87718807f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions
  1. +2
    -0
      Makefile.x86_64
  2. +12
    -0
      kernel/Makefile

+ 2
- 0
Makefile.x86_64 View File

@@ -9,6 +9,7 @@ endif
endif

ifeq ($(CORE), SKYLAKEX)
ifndef DYNAMIC_ARCH
ifndef NO_AVX512
CCOMMON_OPT += -march=skylake-avx512
FCOMMON_OPT += -march=skylake-avx512
@@ -22,6 +23,7 @@ endif
endif
endif
endif
endif

ifeq ($(OSNAME), Interix)
ARFLAGS = -m x64


+ 12
- 0
kernel/Makefile View File

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

ifdef TARGET_CORE
ifeq ($(TARGET_CORE), SKYLAKEX)
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=skylake-avx512
ifeq ($(OSNAME), CYGWIN_NT)
override CFLAGS += -fno-asynchronous-unwind-tables
endif
ifeq ($(OSNAME), WINNT)
ifeq ($(C_COMPILER), GCC)
override CFLAGS += -fno-asynchronous-unwind-tables
endif
endif
else
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
endif
BUILD_KERNEL = 1
KDIR =
TSUFFIX = _$(TARGET_CORE)


Loading…
Cancel
Save