Skip to content

Commit

Permalink
Update Makefile for Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Apr 13, 2021
1 parent 1847c39 commit 575d9c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ endif
# Machine specific
MACHINE = $(shell uname -m)
ifeq ($(MACHINE), x86_64)
COMMON += -march=x86-64 -mtune=generic -std=c++11
COMMON += -march=x86-64 -mtune=generic
else ifeq ($(MACHINE), arm64)
COMMON += -march=armv8-a+simd -mtune=generic
else ifeq ($(MACHINE), aarch64)
COMMON += -march=armv8-a+simd -mtune=generic \
-flax-vector-conversions -std=c++11
COMMON += -march=armv8-a+simd -mtune=generic
else ifeq ($(MACHINE), ppc64le)
COMMON += -mcpu=power8 -std=gnu++11
COMMON += -mcpu=power8
endif

# OS specific
Expand Down

0 comments on commit 575d9c8

Please sign in to comment.