Skip to content

Commit

Permalink
Try to fix __gxx_personality_v0 related issues
Browse files Browse the repository at this point in the history
For now, it just returns `_URC_HANDLER_FOUND`. For better exception handling, we need to implement this carefully.
  • Loading branch information
Gnimuc authored Jul 5, 2019
1 parent e8642bc commit fadf415
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extern "C" {
#include <stddef.h>
#include <cstring>
#include <type_traits>
#include <unwind.h>

// More workarounds for old libstdc++
#if defined(__GLIBCXX__) && !defined(__cpp_lib_is_final)
Expand All @@ -36,6 +37,11 @@ extern "C" {

#ifdef _WIN32
void __cxa_atexit() {}
_Unwind_Reason_Code __gxx_personality_v0(
int version, _Unwind_Action actions, uint64_t exceptionClass,
_Unwind_Exception* unwind_exception, _Unwind_Context* context) {
return _URC_HANDLER_FOUND;
}
#endif
}
void __hack() {
Expand Down

0 comments on commit fadf415

Please sign in to comment.