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

Enable crc instructions when building for arm64 cpu (iOS) #1154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnavarrom
Copy link
Contributor

@jnavarrom jnavarrom commented Sep 13, 2022

I am not sure if this is the correct way to fix the compilation issue #1074, but this works for me.

CRC instructions are enabled by default on ARMv8, but I don't know why it doesn't work when building for arm64, so I have added mcrc to IOS_CXXFLAGS if the CPU is arm64

-m[no-]crc
Enable or disable CRC instructions.

This option is used to indicate whether CRC instructions are to be generated. This only applies to the ARM architecture.

CRC instructions are enabled by default on ARMv8.

https://clang.llvm.org/docs/UsersManual.html

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.

1 participant