'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 1m25s

This commit is contained in:
Your Name
2025-06-02 23:38:28 +12:00
parent d8108ca75d
commit 25fa5be7e1
4 changed files with 107 additions and 4 deletions

View File

@ -79,8 +79,24 @@ FetchContent_Declare(
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
GIT_TAG v0.8.3
)
FetchContent_MakeAvailable(cpptrace)
# Explicitly configure cpptrace to use libunwind
set(CPPTRACE_UNWIND_WITH_LIBUNWIND ON CACHE BOOL "Use libunwind for unwinding" FORCE)
set(CPPTRACE_UNWIND_WITH_UNWIND OFF CACHE BOOL "Disable libgcc unwind" FORCE)
set(CPPTRACE_UNWIND_WITH_EXECINFO OFF CACHE BOOL "Disable execinfo" FORCE)
set(CPPTRACE_UNWIND_WITH_WINAPI OFF CACHE BOOL "Disable winapi" FORCE)
set(CPPTRACE_UNWIND_WITH_DBGHELP OFF CACHE BOOL "Disable dbghelp" FORCE)
set(CPPTRACE_UNWIND_WITH_NOTHING OFF CACHE BOOL "Disable nothing backend" FORCE)
# Disable cpptrace auto-configuration
set(CPPTRACE_NO_AUTO_CONFIG ON CACHE BOOL "Disable cpptrace auto-configuration" FORCE)
# Explicitly set libunwind paths
set(LibUnwind_INCLUDE_DIR "${CMAKE_SYSROOT}/usr/include" CACHE PATH "libunwind include directory" FORCE)
set(LibUnwind_LIBRARY "${CMAKE_SYSROOT}/usr/lib/libunwind.a" CACHE FILEPATH "libunwind library" FORCE)
set(LibUnwind_FOUND TRUE CACHE BOOL "libunwind found" FORCE)
FetchContent_MakeAvailable(cpptrace)
# Add nlohmann/json
FetchContent_Declare(
nlohmann_json
@ -92,8 +108,8 @@ FetchContent_MakeAvailable(nlohmann_json)
# Link libraries
target_link_libraries(${PROJECT_EXE_NAME} PRIVATE
libassert::assert
"${CMAKE_SYSROOT}/usr/lib/libunwind.a"
cpptrace::cpptrace
"${CMAKE_SYSROOT}/usr/lib/libunwind.a"
nlohmann_json::nlohmann_json
)