make : add "-mcpu=native" when building for aarch64 (#532)

pull/552/head
FlippFuzz 2023-02-28 03:04:16 +08:00 committed by GitHub
parent d176160f6f
commit f420de1322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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