Closed barracuda156 closed 2 months ago
Specifically, aligned_alloc
was added in macOS 10.13. So everything prior to that should use a fallback. posix_memalign
is supported in 10.6+, malloc
perhaps everywhere.
Thanks for bringing this up! I try to care about portability but clearly failed in this case: the std::
prefix gave me a false sense of security.
@MichaelRawson Yeah, it was a poor choice, but GNU folks don’t see a problem here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662#c14
@MichaelRawson We got a new problem here, could you please take a look?
aligned_alloc
is not provided by the compiler, it is provided or not by the OS. Since MacOS does not have it on most versions, this fails. It should useposix_memalign
as a fallback ormalloc
.Also broken in the master: