[libcxx-commits] [libcxx] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)

James Y Knight via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 19 07:58:34 PDT 2023


================
@@ -26,6 +28,22 @@ namespace std { // purposefully not using versioning namespace
 class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
   void* __ptr_;
 
+#  ifndef _LIBCPP_HAS_NO_EXCEPTIONS
+#    if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)
----------------
jyknight wrote:

Why does this need to be conditional on libcxxrt or libcxxabi, if libstdc++/libsupc++ also implements this ABI?

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


More information about the libcxx-commits mailing list