-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
disable AES on s390x architecture #3738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd seem better to only enable it on the few archs we can. Let this go in, I'll open a bug for this to change.
AES is also available on (some) ARMv8 |
@NanoAkron yes but not using |
Did a comment get deleted? My email is showing one that isn't coming up ... Anyway cmake has CheckCXXCompilerFlag, CheckCXXSourceCompiles, and CheckCXXSourceRuns. They are going to be tricky to use properly (false positives), so I am not sure if anyone wants to put that much effort into this. But it should be possible. |
Would you mind merge this PR for now and wait for #3740 later ? |
It will be merged once we get to it after we start merging to master again. We will not be waiting for #3740. |
You should test for positive archs, not negative archs. I.e. if you go this route you might need to exclude dozen other archs. Better to list just supported archs. Or just ask compiler if it understands the flag. @NanoAkron -maes is about AES-NI, it is only on x86 and amd64 archs. and maybe ia64. Many ARM subarchs, and even modern PPC, Power, MIPS and s390x does in fact have AES acceleration one way or another, but it is different thing. |
Maybe references to 'AES support' in the CMake should be changed to something better descriptive of what it actually does? |
@tmh1999 please rebase. |
ping |
I rebased this to current master, see #4401. |
Closed; cherry-picked, rebased and merged via #4401 |
AES is only on available on x86*