Skip to content

Commit

Permalink
make : add "-mcpu=native" when building for aarch64 (ggerganov#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlippFuzz authored Feb 27, 2023
1 parent 9d2c4b0 commit befe105
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit befe105

Please sign in to comment.