-
Notifications
You must be signed in to change notification settings - Fork 617
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 OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building on arm64 macOS #772
Conversation
|
For some reason, the compile check for detecting inline AVX support does not correctly disable OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building on arm64 macOS using clang (the check does work correctly on aarch64 Linux using gcc). This change hardcodes OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX to always be false when the system is detected as arm64 macOS. This change is necessary to allow building on arm64 macOS to complete successfully. Signed-off-by: Yining Karl Li <betajippity@gmail.com>
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.
Ain't no AVX on ARM!
@betajippity Could you do the DCO thing? I believe you have to amend the commit with some boilerplate. |
@meshula I thought I already did the DCO thing? Or do I have to do it again? |
Must have been an automation glitch! Everything is green now :) |
But.. what if you are building for multiple architectures? I may be confused, my cmake knowledge is low and after running cmake we build in Xcode, but this fix would appear to disable AVX only if building arm64 only? (My dirty fix is adding |
For some reason, the compile check for detecting inline AVX support does
not correctly disable OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building
on arm64 macOS using clang (the check does work correctly on aarch64 Linux
using gcc). This change hardcodes OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX to
always be false when the system is detected as arm64 macOS. This change
is necessary to allow building on arm64 macOS to complete successfully.