mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix cmake template define issue
This commit is contained in:
parent
478c3b3e0b
commit
82088fa0d7
2 changed files with 1 additions and 5 deletions
|
@ -4,6 +4,4 @@ constexpr auto build_os = "${CMAKE_HOST_SYSTEM_NAME}";
|
||||||
constexpr auto enable_debug_log = ${SPDLOG_DEBUG_ON};
|
constexpr auto enable_debug_log = ${SPDLOG_DEBUG_ON};
|
||||||
}
|
}
|
||||||
|
|
||||||
// clang-format off
|
# cmakedefine01 HAVE_BACKTRACE_SYMBOLS_FD
|
||||||
#define HAVE_BACKTRACE_SYMBOLS_FD ${HAVE_BACKTRACE_SYMBOLS_FD}
|
|
||||||
// clang-format on
|
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
QQmlDebuggingEnabler enabler;
|
QQmlDebuggingEnabler enabler;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(Q_OS_WINDOWS)
|
|
||||||
#if HAVE_BACKTRACE_SYMBOLS_FD
|
#if HAVE_BACKTRACE_SYMBOLS_FD
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
@ -93,7 +92,6 @@ registerSignalHandlers()
|
||||||
std::signal(SIGABRT, &stacktraceHandler);
|
std::signal(SIGABRT, &stacktraceHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// No implementation for systems with no stacktrace support.
|
// No implementation for systems with no stacktrace support.
|
||||||
|
|
Loading…
Reference in a new issue