From ad94a83e0f3025d046cf6162ca2251e598dce571 Mon Sep 17 00:00:00 2001 From: FlippFuzz <41221030+FlippFuzz@users.noreply.github.com> Date: Sat, 25 Feb 2023 10:22:26 +0800 Subject: [PATCH] Add "-mcpu=native" when building for aarch64 --- 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