-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update SystemNative_AlignedAlloc
to properly check aligned_alloc
availability for Apple targets
#54296
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Would it make sense to use |
I don't think its worth it for this scenario. We are falling back to |
Makes sense. Thanks! |
* Enable aligned_alloc on macOS Fixes #54296 Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
#54006 introduced new
NativeMemory
APIs including one that wrapsaligned_alloc
where available.On Apple targets this is only available on 10.15 or later but we currently target 10.13 and as such have a
#if HAVE_ALIGNED_ALLOC && !defined(__APPLE__)
check.Ideally we would update this to correctly check for the availability of
aligned_alloc
(either via CMake magic or some existing Apple specific define) so we can light up on iOS, OSX, and Apple Silicon.The text was updated successfully, but these errors were encountered: