From 2daeefdddbe9a10b2f157118d1de4fcea80766ba Mon Sep 17 00:00:00 2001 From: Ivan Trofimov Date: Mon, 22 Jan 2024 22:24:20 +0300 Subject: [PATCH] [libc++] fix linkage for platforms that don't implement std::exception_ptr --- .../src/support/runtime/exception_pointer_unimplemented.ipp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp b/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp index de0605d7774b8..e12b0caf419d2 100644 --- a/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp +++ b/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp @@ -30,6 +30,12 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept { ::abort(); } +exception_ptr exception_ptr::__from_native_exception_pointer(void *__e) noexcept { +#warning exception_ptr not yet implemented + fprintf(stderr, "exception_ptr not yet implemented\n"); + ::abort(); +} + nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {} #if !defined(__GLIBCXX__)