From f420de1322a64b9ed8cc8705ad0a3fdb9998303a Mon Sep 17 00:00:00 2001 From: FlippFuzz <41221030+FlippFuzz@users.noreply.github.com> Date: Tue, 28 Feb 2023 03:04:16 +0800 Subject: [PATCH] make : add "-mcpu=native" when building for aarch64 (#532) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b61a588..604ee63 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