[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_HAS_SIZED_DEALLOCATION (PR #172285)
Nico Weber via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 18 10:01:58 PDT 2026
================
@@ -13,7 +13,6 @@
#include <__cstddef/max_align_t.h>
#include <__cstddef/size_t.h>
#include <__new/align_val_t.h>
-#include <__new/global_new_delete.h> // for _LIBCPP_HAS_SIZED_DEALLOCATION
----------------
nico wrote:
Here's a standalone (but not terribly reduced) repro:
[repro.tar.gz](https://github.com/user-attachments/files/26093401/repro.tar.gz)
It'll unzip to standalone-repro/. Then:
```
cd standalone-build
cd out/build/
CLANG=/Users/thakis/src/llvm-project/out/gn/bin/clang++ ./build.sh
```
This will get you the error I pasted above.
The repro contains no Chrome-specific code, it's just libc++ code, and a debian sysroot.
If you edit ../../out/build/gen/third_party/libc++/src/include/__new/allocate.h and add `#include <__new/global_new_delete.h> // for _LIBCPP_HAS_SIZED_DEALLOCATION` back, then the same command will compile without problems.
https://github.com/llvm/llvm-project/pull/172285
More information about the libcxx-commits
mailing list