]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : add "-mcpu=native" when building for aarch64 (#532)
authorFlippFuzz <redacted>
Mon, 27 Feb 2023 19:04:16 +0000 (03:04 +0800)
committerGitHub <redacted>
Mon, 27 Feb 2023 19:04:16 +0000 (21:04 +0200)
Makefile

index b61a5882700d318467d71e8f22d18a1b0299f2f2..604ee637eca4980c8b031e0b2beeda8b084cde95 100644 (file)
--- 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