[libcxx-commits] [libcxx] [libc++] Fix missing 'get_new_handler()' for Windows builds (PR #150182)

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 27 10:11:19 PST 2026


petrhosek wrote:

> I feel like we should document what our goal for Windows/MSVC is. What sort of compatibility do we want and what should be separated? Do we want to avoid any MSVC headers? In that case we would also want to avoid `<vcruntime_new.h>`. @petrhosek @mstorsjo do you believe separating libc++ completely from MSVC is a goal we should have? Are there people who might not want this separation?

I think it's desirable to avoid the dependency on STL (as is the case today)—it's undesirable to have libc++ depend on another C++ standard library implementation—but I don't think we can separate libc++ from vcruntime since we use it as the C++ ABI library on Windows. To avoid the dependency on vcruntime, we would need to use libunwind and libc++abi on Windows which is what MinGW does, but that has potentially undesirable consequences (it also raises a question why not just use MinGW at that point).

https://github.com/llvm/llvm-project/pull/150182


More information about the libcxx-commits mailing list