build: Added option to disable stack traces
This commit is contained in:
parent
9e3fe9beb1
commit
09b7794d71
@ -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_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_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_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
|
# Basic compiler and cmake configurations
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
@ -515,6 +515,7 @@ macro(addBundledLibraries)
|
|||||||
set(MAGIC_INCLUDE_DIRS ${MAGIC_INCLUDEDIR})
|
set(MAGIC_INCLUDE_DIRS ${MAGIC_INCLUDEDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT IMHEX_DISABLE_STACKTRACE)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
message(STATUS "StackWalk enabled!")
|
message(STATUS "StackWalk enabled!")
|
||||||
set(LIBBACKTRACE_LIBRARIES DbgHelp.lib)
|
set(LIBBACKTRACE_LIBRARIES DbgHelp.lib)
|
||||||
@ -536,4 +537,5 @@ macro(addBundledLibraries)
|
|||||||
endif ()
|
endif ()
|
||||||
endif()
|
endif()
|
||||||
endif ()
|
endif ()
|
||||||
|
endif ()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
Loading…
Reference in New Issue
Block a user