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

View file

@ -312,6 +312,8 @@ 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
CFLAGS +=
CXXFLAGS +=
else else
CFLAGS += -mcpu=native CFLAGS += -mcpu=native
CXXFLAGS += -mcpu=native CXXFLAGS += -mcpu=native