[libcxx-commits] [PATCH] D103947: [libcxx] Fix using the vcruntime ABI with _HAS_EXCEPTIONS=0 defined

Petr Hosek via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 30 00:07:45 PDT 2021


phosek added a comment.

In D103947#2911434 <https://reviews.llvm.org/D103947#2911434>, @mstorsjo wrote:

>> To avoid this, would it be possible to provide an ABI-compatible `std::exception` class, and use that unconditionally when building on top of the VC runtime?
>
> Maybe that's possible - I haven't studied if their regular `std::exception` class does something funky or not.

Their `std::exception` has two class members (one for the name string and other for what appears to be an deallocation flag) so we would need to conditionally modify the libc++ `std::exception` layout on Windows to match theirs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103947/new/

https://reviews.llvm.org/D103947



More information about the libcxx-commits mailing list