temporarily "fix" MinGW issue
This commit is contained in:
parent
58750d58c3
commit
0292f4d4c3
|
@ -506,7 +506,7 @@ set(USED_SOURCES ${ENGINE_SOURCES} ${AUDIO_SOURCES} src/main.cpp)
|
||||||
if (USE_BACKWARD)
|
if (USE_BACKWARD)
|
||||||
list(APPEND USED_SOURCES src/backtrace.cpp)
|
list(APPEND USED_SOURCES src/backtrace.cpp)
|
||||||
if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
list(APPEND DEPENDENCIES_LIBRARIES dbghelp msvcr90 psapi)
|
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
3
extern/backward/backward.hpp
vendored
3
extern/backward/backward.hpp
vendored
|
@ -4325,7 +4325,10 @@ public:
|
||||||
SetUnhandledExceptionFilter(crash_handler);
|
SetUnhandledExceptionFilter(crash_handler);
|
||||||
|
|
||||||
signal(SIGABRT, signal_handler);
|
signal(SIGABRT, signal_handler);
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
// TODO: fix for MinGW
|
||||||
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
||||||
|
#endif
|
||||||
|
|
||||||
std::set_terminate(&terminator);
|
std::set_terminate(&terminator);
|
||||||
#ifndef BACKWARD_ATLEAST_CXX17
|
#ifndef BACKWARD_ATLEAST_CXX17
|
||||||
|
|
Loading…
Reference in a new issue