File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ option(LIBUNWIND_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF)
69
69
option (LIBUNWIND_INCLUDE_DOCS "Build the libunwind documentation." ${LLVM_INCLUDE_DOCS} )
70
70
option (LIBUNWIND_IS_BAREMETAL "Build libunwind for baremetal targets." OFF )
71
71
option (LIBUNWIND_USE_FRAME_HEADER_CACHE "Cache frame headers for unwinding. Requires locking dl_iterate_phdr." OFF )
72
+ option (LIBUNWIND_REMEMBER_HEAP_ALLOC "Use heap instead of the stack for .cfi_remember_state." OFF )
72
73
73
74
set (LIBUNWIND_LIBDIR_SUFFIX "${LLVM_LIBDIR_SUFFIX} " CACHE STRING
74
75
"Define suffix of library directory name (32/64)" )
@@ -312,6 +313,10 @@ if(LIBUNWIND_USE_FRAME_HEADER_CACHE)
312
313
add_compile_definitions (_LIBUNWIND_USE_FRAME_HEADER_CACHE )
313
314
endif ()
314
315
316
+ if (LIBUNWIND_REMEMBER_HEAP_ALLOC )
317
+ add_compile_definitions (_LIBUNWIND_REMEMBER_HEAP_ALLOC )
318
+ endif ()
319
+
315
320
# This is the _ONLY_ place where add_definitions is called.
316
321
if (MSVC )
317
322
add_definitions (-D_CRT_SECURE_NO_WARNINGS )
You can’t perform that action at this time.
0 commit comments