Skip to content

Commit 91135df

Browse files
committed
Default to the rtlvirtualunwind back-end on arm
1 parent 430c7b4 commit 91135df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/Autoconfig.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ if(
105105
message(FATAL_ERROR "Cpptrace auto config: No unwinding back-end seems to be supported, stack tracing will not work. To compile anyway set CPPTRACE_UNWIND_WITH_NOTHING.")
106106
endif()
107107
elseif(MINGW OR WIN32)
108-
if(HAS_STACKWALK)
108+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(ARM64|AARCH64|aarch64)$")
109+
set(CPPTRACE_UNWIND_WITH_RTLVIRTUALUNWIND On)
110+
message(STATUS "Cpptrace auto config: Using RtlVirtualUnwind for unwinding")
111+
elseif(HAS_STACKWALK)
109112
set(CPPTRACE_UNWIND_WITH_DBGHELP On)
110113
message(STATUS "Cpptrace auto config: Using dbghelp for unwinding")
111114
else()

0 commit comments

Comments
 (0)