Skip to content

Commit 8771880

Browse files
authored
Merge pull request #1910 from martin-frbg/issue1909
Fix for DYNAMIC_ARCH builds made on a AVX512-capable host
2 parents 0bf6d74 + 51aec8e commit 8771880

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Makefile.x86_64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ endif
99
endif
1010

1111
ifeq ($(CORE), SKYLAKEX)
12+
ifndef DYNAMIC_ARCH
1213
ifndef NO_AVX512
1314
CCOMMON_OPT += -march=skylake-avx512
1415
FCOMMON_OPT += -march=skylake-avx512
@@ -22,6 +23,7 @@ endif
2223
endif
2324
endif
2425
endif
26+
endif
2527

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

kernel/Makefile

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

88
ifdef TARGET_CORE
9+
ifeq ($(TARGET_CORE), SKYLAKEX)
10+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=skylake-avx512
11+
ifeq ($(OSNAME), CYGWIN_NT)
12+
override CFLAGS += -fno-asynchronous-unwind-tables
13+
endif
14+
ifeq ($(OSNAME), WINNT)
15+
ifeq ($(C_COMPILER), GCC)
16+
override CFLAGS += -fno-asynchronous-unwind-tables
17+
endif
18+
endif
19+
else
920
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
21+
endif
1022
BUILD_KERNEL = 1
1123
KDIR =
1224
TSUFFIX = _$(TARGET_CORE)

0 commit comments

Comments
 (0)