Skip to content

Commit

Permalink
Apple M1用のビルドターゲット (#223)
Browse files Browse the repository at this point in the history
MakefileにApple M1用のビルドターゲットCPUオプションを追加
  • Loading branch information
bleu48 authored Dec 24, 2021
1 parent 5c7dab1 commit 0640f43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ else ifeq ($(TARGET_CPU),GRAVITON2)
# for Amazon Web Servece EC2, the Graviton2 CPU [M6g/M6gd, C6g/C6gd/C6gn, R6g/R6gd, T4g, X2gd] instances
# https://github.com/aws/aws-graviton-getting-started/blob/main/c-c++.md
CPPFLAGS += -DIS_64BIT -DUSE_NEON -march=armv8.2-a+fp16+rcpc+dotprod+crypto
else ifeq ($(TARGET_CPU),M1)
# for Apple M1
CPPFLAGS += -DIS_64BIT -DUSE_NEON -march=armv8.5-a+fp16+rcpc+dotprod+crypto -mcpu=apple-m1

else ifeq ($(TARGET_CPU),OTHER)
CPPFLAGS += -DNO_SSE
Expand Down

0 comments on commit 0640f43

Please sign in to comment.