1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Added option to disable stack traces

This commit is contained in:
WerWolv 2023-02-17 17:52:10 +01:00
parent 9e3fe9beb1
commit 09b7794d71
2 changed files with 22 additions and 19 deletions

View File

@ -9,6 +9,7 @@ option(IMHEX_IGNORE_BAD_CLONE "Disable the bad clone prevention checks" OFF)
option(IMHEX_PATTERNS_PULL_MASTER "Download latest files from master branch of the ImHex-Patterns repo" OFF)
option(IMHEX_IGNORE_BAD_COMPILER "Allow compiling with an unsupported compiler" OFF)
option(IMHEX_USE_GTK_FILE_PICKER "Use GTK file picker instead of xdg-desktop-portals" OFF)
option(IMHEX_DISABLE_STACKTRACE "Disables support for printing stack traces" OFF)
# Basic compiler and cmake configurations
set(CMAKE_CXX_STANDARD 23)

View File

@ -515,6 +515,7 @@ macro(addBundledLibraries)
set(MAGIC_INCLUDE_DIRS ${MAGIC_INCLUDEDIR})
endif()
if (NOT IMHEX_DISABLE_STACKTRACE)
if (WIN32)
message(STATUS "StackWalk enabled!")
set(LIBBACKTRACE_LIBRARIES DbgHelp.lib)
@ -536,4 +537,5 @@ macro(addBundledLibraries)
endif ()
endif()
endif ()
endif ()
endmacro()