Skip to content

Update SystemNative_AlignedAlloc to properly check aligned_alloc availability for Apple targets #54296

Closed
@tannergooding

Description

@tannergooding

#54006 introduced new NativeMemory APIs including one that wraps aligned_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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions