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

Fix compiling on M1 Macs #1648

Merged
merged 1 commit into from
Mar 11, 2022
Merged

Fix compiling on M1 Macs #1648

merged 1 commit into from
Mar 11, 2022

Conversation

JonArcherII
Copy link
Contributor

Clang on M1 does not support -march=native, so instead let's explicitly use -mcpu=apple-m1, this was all that was needed to have a mac python build.

Fixes #1644.

This flag causes issues on M1 Macs, as clang does not support this flag on this platform. Instead, use -march-apple-m1.
@neubig
Copy link
Contributor

neubig commented Mar 11, 2022

Thank you!

@neubig neubig merged commit a792752 into clab:master Mar 11, 2022
@ai-nikolai
Copy link

@neubig thanks for the package support. Is there any update on making dynet available on arm-based Mac?

Thanks.

@ai-nikolai
Copy link

@JonArcherII could you elaborate on your answer. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How does it run on an M1 Mac?
3 participants