Skip to content

Commit 8c68045

Browse files
authored
[libc++] Fix linking for platforms that don't implement std::exception_ptr (#79040)
This patch fixes linkage for platforms that don't implement std::exception_ptr, as such setup was overlooked in #65534.
1 parent e5ca202 commit 8c68045

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libcxx/src/support/runtime/exception_pointer_unimplemented.ipp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept {
3030
::abort();
3131
}
3232

33+
exception_ptr exception_ptr::__from_native_exception_pointer(void *__e) noexcept {
34+
#warning exception_ptr not yet implemented
35+
fprintf(stderr, "exception_ptr not yet implemented\n");
36+
::abort();
37+
}
38+
3339
nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {}
3440

3541
#if !defined(__GLIBCXX__)

0 commit comments

Comments
 (0)