[libcxx-commits] [libcxxabi] [libcxx] [libcxxabi] Dont throw in make exception ptr if __cxa_init_primary_exception is available (PR #65534)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Oct 15 11:11:46 PDT 2023
================
@@ -51,11 +69,24 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
template <class _Ep>
_LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
# ifndef _LIBCPP_HAS_NO_EXCEPTIONS
+# if defined(LIBCXX_BUILDING_LIBCXXABI)
----------------
itrofimow wrote:
I've added support for `libcxxrt` as well and made it a runtime check
https://github.com/llvm/llvm-project/pull/65534
More information about the libcxx-commits
mailing list