Fix Makefile for MacBook Intel

pull/31/head
Georgi Gerganov 2 years ago
parent 2ca8cc77b2
commit 5e563ef635

@ -24,15 +24,16 @@ ifeq ($(UNAME_S),Darwin)
endif
# Architecture specific
ifeq ($(UNAME_P),x86_64)
# TODO: probably these flags need to be tweaked on some architectures
ifeq ($(UNAME_M),x86_64)
CFLAGS += -mavx -mavx2 -mfma -mf16c
endif
ifneq ($(filter arm%,$(UNAME_P)),)
ifneq ($(filter arm%,$(UNAME_M)),)
# Mac M1
endif
ifneq ($(filter aarch64%,$(UNAME_P)),)
endif
ifneq ($(filter armv6%,$(UNAME_M)),)
ifneq ($(filter aarch64%,$(UNAME_M)),)
endif
ifneq ($(filter armv6%,$(UNAME_M)),)
# Raspberry Pi 1, 2, 3
CFLAGS += -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access
endif

Loading…
Cancel
Save