Skip to content

Commit 51aec8e

Browse files
authored
make sure the added march=skylake-avx512 does not cause problems on Windows
1 parent 06f7d78 commit 51aec8e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

kernel/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ include $(TOPDIR)/Makefile.system
77

88
ifdef TARGET_CORE
99
ifeq ($(TARGET_CORE), SKYLAKEX)
10-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=skylake-avx512
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
1119
else
1220
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
1321
endif

0 commit comments

Comments
 (0)