added missing gcc unwinder preference option in cmake
This commit is contained in:
parent
8987d08f79
commit
ad4a6ff8de
|
@ -120,6 +120,11 @@ option(gperftools_enable_libunwind
|
||||||
set(enable_backtrace ${gperftools_enable_stacktrace_via_backtrace})
|
set(enable_backtrace ${gperftools_enable_stacktrace_via_backtrace})
|
||||||
set(enable_libunwind ${gperftools_enable_libunwind})
|
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}
|
set(gperftools_tcmalloc_pagesize ${default_tcmalloc_pagesize}
|
||||||
CACHE STRING "Set the tcmalloc internal page size")
|
CACHE STRING "Set the tcmalloc internal page size")
|
||||||
set(allowed_page_sizes LIST "4;8;16;32;64;128;256")
|
set(allowed_page_sizes LIST "4;8;16;32;64;128;256")
|
||||||
|
|
|
@ -230,6 +230,9 @@
|
||||||
#endif
|
#endif
|
||||||
#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
|
/* Mark the systems where we know it's bad if pthreads runs too
|
||||||
early before main (before threads are initialized, presumably). */
|
early before main (before threads are initialized, presumably). */
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
|
|
Loading…
Reference in New Issue