temporarily "fix" MinGW issue

This commit is contained in:
tildearrow 2022-05-24 22:15:43 -05:00
parent 58750d58c3
commit 0292f4d4c3
2 changed files with 4 additions and 1 deletions

View File

@ -506,7 +506,7 @@ set(USED_SOURCES ${ENGINE_SOURCES} ${AUDIO_SOURCES} src/main.cpp)
if (USE_BACKWARD)
list(APPEND USED_SOURCES src/backtrace.cpp)
if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND DEPENDENCIES_LIBRARIES dbghelp msvcr90 psapi)
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
endif()
endif()

View File

@ -4325,7 +4325,10 @@ public:
SetUnhandledExceptionFilter(crash_handler);
signal(SIGABRT, signal_handler);
#ifdef _MSC_VER
// TODO: fix for MinGW
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
#endif
std::set_terminate(&terminator);
#ifndef BACKWARD_ATLEAST_CXX17