Enabled backward-cpp for debug build on Linux
This commit is contained in:
@@ -43,10 +43,13 @@ target_compile_options(clang-uml PRIVATE
|
||||
-Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field
|
||||
-Wno-deprecated-declarations>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/MP /W1 /bigobj /wd4291 /wd4624 /wd4244>)
|
||||
target_compile_definitions(clang-uml PRIVATE
|
||||
${ENABLE_BACKWARD_CPP})
|
||||
target_link_libraries(clang-uml
|
||||
${YAML_CPP_LIBRARIES}
|
||||
${LIBTOOLING_LIBS}
|
||||
${MSVC_LIBRARIES}
|
||||
${BACKWARD_CPP_LIBRARIES}
|
||||
clang-umllib
|
||||
Threads::Threads)
|
||||
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
#include "util/util.h"
|
||||
#include "version.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifdef ENABLE_BACKWARD_CPP
|
||||
#define BACKWARD_HAS_DW 1
|
||||
#define BACKWARD_HAS_LIBUNWIND 1
|
||||
#include <backward-cpp/backward.hpp>
|
||||
#endif
|
||||
|
||||
@@ -40,7 +42,7 @@
|
||||
#include <iostream>
|
||||
#include <util/thread_pool_executor.h>
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifdef ENABLE_BACKWARD_CPP
|
||||
namespace backward {
|
||||
backward::SignalHandling sh; // NOLINT
|
||||
} // namespace backward
|
||||
|
||||
Reference in New Issue
Block a user