[libcxx-commits] [libcxx] [libc++] Improve aligned allocation support with picolibc. (PR #96086)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 21 07:14:15 PDT 2024
================
@@ -16,6 +16,8 @@
#include <new>
#include <type_traits>
+#include <__memory/aligned_alloc.h> // reuse aligned allocation helper
----------------
ldionne wrote:
We don't want to reuse libc++ internal functionality in the test suite. One reason is that our test suite is used by other implementations of the C++ stdlib that are not libc++, and those don't have `__memory/aligned_alloc.h`. Another reason is that we should avoid relying on library functionality that we're testing *in the implementation of the test suite*, because that's kinda circular.
https://github.com/llvm/llvm-project/pull/96086
More information about the libcxx-commits
mailing list