Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use apple-m1 as the base mcpu for aarch64-apple-darwin #44347

Merged
merged 1 commit into from
Mar 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use apple-m1 as the base march for aarch64-apple-darwin
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 committed Feb 25, 2022
commit 78657b8fb544c1419f7f732d3c93e5fb57e728a6
2 changes: 1 addition & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,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