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

This commit is contained in:
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

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