From 65c9a400d56b7412dbac03d93412ba4de1734396 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 13 Jun 2022 23:41:31 +0200 Subject: refactor: add uncaught exception stack traces --- src/CMakeLists.txt | 3 +++ src/engine/main.cpp | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f6b27cb..c0ebbe2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -62,12 +62,15 @@ endif() target_include_directories(${PROJECT_NAME} PRIVATE .) +target_link_libraries(${PROJECT_NAME} dw) + target_link_libraries_system( ${PROJECT_NAME} fmt::fmt-header-only GSL yacppdic ctre + backward ) target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address) diff --git a/src/engine/main.cpp b/src/engine/main.cpp index b4955b5..b703218 100644 --- a/src/engine/main.cpp +++ b/src/engine/main.cpp @@ -2,8 +2,12 @@ #include "bootstrap.hpp" +#include + auto main() noexcept -> int { + backward::SignalHandling signal_handling; + auto container = bootstrap(); auto engine = container.get(); -- cgit v1.2.3-18-g5258