Skip to content

Commit

Permalink
Use apple-m1 as the base march for aarch64-apple-darwin (#44347)
Browse files Browse the repository at this point in the history
Since the Apple devkits are all presumably returned to Apple at this
point, it doesn't make sense to continue to build for the earlier a12
model, we should just build for the M1 explicitly.  LLVM supports
`-mcpu=apple-m1` since LLVM 13.0.0-rc1 [0].  Clang 13 (ships with
Xcode 13) understands this, so it's a safe bet that this can be used
with the C compiler that is generating this code as well.

[0]
llvm/llvm-project@a8a3a43
  • Loading branch information
staticfloat authored Mar 16, 2022
1 parent 5ab5f98 commit 1823a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ USE_BLAS64:=1
BINARY:=64
ifeq ($(OS),Darwin)
# Apple Chips are all at least A12Z
MCPU:=apple-a12
MCPU:=apple-m1
endif
endif

Expand Down

0 comments on commit 1823a4d

Please sign in to comment.