This commit is contained in:
Concedo 2024-12-10 00:00:02 +08:00
parent ddfd82bca1
commit 5a263a5bd4

View file

@ -311,11 +311,13 @@ endif # LLAMA_METAL
ifneq ($(filter arm64% aarch64%,$(UNAME_M)),) ifneq ($(filter arm64% aarch64%,$(UNAME_M)),)
# Apple M1, M2, etc. # Apple M1, M2, etc.
# Raspberry Pi 3, 4, Zero 2 (64-bit) # Raspberry Pi 3, 4, Zero 2 (64-bit)
ifdef LLAMA_PORTABLE ifdef LLAMA_PORTABLE
else CFLAGS +=
CXXFLAGS +=
else
CFLAGS += -mcpu=native CFLAGS += -mcpu=native
CXXFLAGS += -mcpu=native CXXFLAGS += -mcpu=native
endif endif
endif endif
ifneq ($(filter armv6%,$(UNAME_M)),) ifneq ($(filter armv6%,$(UNAME_M)),)