summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoe <rubberduckie3554@gmail.com>2021-07-07 09:48:13 -0400
committerJoe <rubberduckie3554@gmail.com>2021-07-07 09:48:13 -0400
commit82088fa0d7746308aa0fe5be73a5a6a24cec27ac (patch)
treea9a37b320fd482ba6476ba5c0978b050cd66384b
parentFix Backtrace define error for Windows (diff)
downloadnheko-82088fa0d7746308aa0fe5be73a5a6a24cec27ac.tar.xz
Fix cmake template define issue
-rw-r--r--cmake/nheko.h4
-rw-r--r--src/main.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/cmake/nheko.h b/cmake/nheko.h

index c2329917..ae28aea9 100644 --- a/cmake/nheko.h +++ b/cmake/nheko.h
@@ -4,6 +4,4 @@ constexpr auto build_os = "${CMAKE_HOST_SYSTEM_NAME}"; constexpr auto enable_debug_log = ${SPDLOG_DEBUG_ON}; } -// clang-format off -#define HAVE_BACKTRACE_SYMBOLS_FD ${HAVE_BACKTRACE_SYMBOLS_FD} -// clang-format on +# cmakedefine01 HAVE_BACKTRACE_SYMBOLS_FD diff --git a/src/main.cpp b/src/main.cpp
index bb6f946b..29e93d49 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -40,7 +40,6 @@ QQmlDebuggingEnabler enabler; #endif -#if !defined(Q_OS_WINDOWS) #if HAVE_BACKTRACE_SYMBOLS_FD #include <csignal> #include <execinfo.h> @@ -93,7 +92,6 @@ registerSignalHandlers() std::signal(SIGABRT, &stacktraceHandler); } -#endif #else // No implementation for systems with no stacktrace support.