[libcxx-commits] [libcxx] [libc++] Fix C++23 standard modules when using with `clang-cl` on Windows (PR #148992)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 21 20:23:17 PDT 2025
================
@@ -17,6 +17,11 @@
#if defined(_LIBCPP_ABI_VCRUNTIME)
# include <new.h>
----------------
siradam7th wrote:
I have removed the `_LIBCPP_ABI_VCRUNTIME` macro conditional from `libcxx/include/__new/new_handler.h`.
and fixed the missing symbols which are now defined by `libcxx/src/new_handler.cpp`, and everything is working correctly.
apart from a couple of warnings of redeclaration since some of the `cpp` files include `<new>`:
```
llvm-project\build\include\c++\v1\__new/new_handler.h(20,39): warning: redeclaration of 'std::set_new_handler' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
20 | _LIBCPP_EXPORTED_FROM_ABI new_handler set_new_handler(new_handler) _NOEXCEPT;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\new.h(32,42): note: previous declaration is here
32 | _CRTIMP2 new_handler __cdecl set_new_handler(_In_opt_ new_handler _NewHandler) throw();
| ^
1 warning generated.
```
https://github.com/llvm/llvm-project/pull/148992
More information about the libcxx-commits
mailing list