added missing gcc unwinder preference option in cmake

This commit is contained in:
Mateusz Jakub Fila 2023-12-24 02:38:59 +01:00
parent 8987d08f79
commit ad4a6ff8de
2 changed files with 8 additions and 0 deletions

View File

@ -120,6 +120,11 @@ option(gperftools_enable_libunwind
set(enable_backtrace ${gperftools_enable_stacktrace_via_backtrace})
set(enable_libunwind ${gperftools_enable_libunwind})
option(gperftools_enable_libgcc_unwinder_by_default
"Prefer libgcc's _Unwind_Backtrace as default stacktrace capturing method"
OFF)
set(PREFER_LIBGCC_UNWINDER ${gperftools_enable_libgcc_unwinder_by_default})
set(gperftools_tcmalloc_pagesize ${default_tcmalloc_pagesize}
CACHE STRING "Set the tcmalloc internal page size")
set(allowed_page_sizes LIST "4;8;16;32;64;128;256")

View File

@ -230,6 +230,9 @@
#endif
#endif
/* if libgcc stacktrace method should be default */
#cmakedefine PREFER_LIBGCC_UNWINDER
/* Mark the systems where we know it's bad if pthreads runs too
early before main (before threads are initialized, presumably). */
#ifdef __FreeBSD__