Skip to content

Commit 31bb6ca

Browse files
authored
Apple Clang requires +sme in the arch string for M4
1 parent 5e5f9a3 commit 31bb6ca

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

kernel/Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ ifeq ($(TARGET_CORE), ARMV9SME)
3636
endif
3737
ifeq ($(TARGET_CORE), VORTEXM4)
3838
ifeq ($(C_COMPILER), GCC)
39-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -UHAVE_SME -march=armv8.4-a
39+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -UHAVE_SME -march=armv8.4-a
4040
else
41-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a -mcpu=apple-m4
42-
ifdef OS_WINDOWS
43-
ifeq ($(C_COMPILER), CLANG)
44-
override CFLAGS += --aarch64-stack-hazard-size=0
45-
endif
46-
endif
41+
ifeq ($(APPLECLANG),1)
42+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a+sme -mcpu=apple-m4
43+
else
44+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a -mcpu=apple-m4
45+
endif
46+
ifdef OS_WINDOWS
47+
ifeq ($(C_COMPILER), CLANG)
48+
override CFLAGS += --aarch64-stack-hazard-size=0
49+
endif
50+
endif
4751
endif
4852
endif
4953
ifeq ($(TARGET_CORE), SAPPHIRERAPIDS)

0 commit comments

Comments
 (0)