-
Notifications
You must be signed in to change notification settings - Fork 468
Keep posix_memalign() around for older Android APIs #811
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
Conversation
@compnerd, this adds the fallback you asked for, please review. |
@rauhul, please run the CI. |
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.
Personally, I would prefer that we check the support for aligned_alloc
in CMake and then fallback to posix_memalign
rather than just hardcode the specific platform.
Alright, I will look into that. |
To be removed when this is merged upstream: swiftlang/swift-corelibs-libdispatch#811 Fixes #19.
I will finish this up this month and submit it. |
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.
Seems reasonable to me. I agree with @compnerd that we can let CMake select it so it's not platform specific, but bassed on what the sysroot itself has. I tried doing that in parts of corelibs-Foundation here, but ran into issues with xcodebuild: swiftlang/swift-corelibs-foundation#4860
That shouldn't be a problem here because we don't build this for macOS at all.
…tforms, like Android before API 28, that didn't have it
Sorry about the delay on this, @compnerd, ready for testing and review. |
@kateinoigakukun, please run the CI on this. |
@rauhul, need a CI run here. |
@swift-ci test |
Ping @compnerd, passed CI, just needs review and merge. |
This simply brings back #805 for platforms that need it.