We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When attempting to build from source on apple silicon, the error is returned:
the clang compiler does not support '-march=native'
This is fixed by changing -march=native to -mcpu=apple-m1 in the CMakeLists.txt file
The text was updated successfully, but these errors were encountered:
Is apple-m1 still the correct value if using an M2 processor?
apple-m1
Sorry, something went wrong.
I get that same error on my M1 Mac and I use that same change. It'd be good to detect in CMakeLists.txt if the system is Apple and ARM64.
A quick search didn't reveal much, but -mcpu=apple-m1 should be okay until it becomes an issue. I think newer Clang versions allow -march=native.
-mcpu=apple-m1
-march=native
I tried compiling again on my Mac and -march=native worked fine, not sure if this issue can be closed yet though.
No branches or pull requests
When attempting to build from source on apple silicon, the error is returned:
the clang compiler does not support '-march=native'
This is fixed by changing -march=native to -mcpu=apple-m1 in the CMakeLists.txt file
The text was updated successfully, but these errors were encountered: