[libcxx-commits] [libcxxabi] [libcxx] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 5 10:58:52 PST 2023
================
@@ -34,6 +35,29 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept
return *this;
}
+# if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION
----------------
ldionne wrote:
Here, just remove the `#if` guard and it'll make sure we define these symbols whenever we build the dylib, which is what we want.
The availability macros are meant to guard whether the code in the headers should rely on these definitions in the dylib to support back-deployment use cases. But we always want to define those symbols in the dylib.
https://github.com/llvm/llvm-project/pull/65534
More information about the libcxx-commits
mailing list