Skip to content

Commit 5c8cf37

Browse files
authored
Add workaround for current LLVM SME bug on Windows
1 parent 275eb6f commit 5c8cf37

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

kernel/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,22 @@ endif
2828
ifdef TARGET_CORE
2929
ifeq ($(TARGET_CORE), ARMV9SME)
3030
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv9-a+sve2+sme
31+
ifdef (OS_WINDOWS)
32+
ifeq ($(C_COMPILER), CLANG)
33+
override CFLAGS += --aarch64-stack-hazard-size=0
34+
endif
35+
endif
3136
endif
3237
ifeq ($(TARGET_CORE), VORTEXM4)
3338
ifeq ($(C_COMPILER), GCC)
3439
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -UHAVE_SME -march=armv8.4-a
3540
else
3641
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a+sme
37-
endif
42+
ifdef (OS_WINDOWS)
43+
ifeq ($(C_COMPILER), CLANG)
44+
override CFLAGS += --aarch64-stack-hazard-size=0
45+
endif
46+
endif
3847
endif
3948
ifeq ($(TARGET_CORE), SAPPHIRERAPIDS)
4049
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)

0 commit comments

Comments
 (0)