From: FlippFuzz Date: Mon, 27 Feb 2023 19:04:16 +0000 (+0800) Subject: make : add "-mcpu=native" when building for aarch64 (#532) X-Git-Tag: upstream/1.7.4~1559 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f420de1322a64b9ed8cc8705ad0a3fdb9998303a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp make : add "-mcpu=native" when building for aarch64 (#532) --- diff --git a/Makefile b/Makefile index b61a5882..604ee637 100644 --- a/Makefile +++ b/Makefile @@ -141,6 +141,8 @@ ifdef WHISPER_GPROF CXXFLAGS += -pg endif ifneq ($(filter aarch64%,$(UNAME_M)),) + CFLAGS += -mcpu=native + CXXFLAGS += -mcpu=native endif ifneq ($(filter armv6%,$(UNAME_M)),) # Raspberry Pi 1, 2, 3