mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 12:42:04 +00:00
add configure-time warning on unsupported backtrace capturing
Both libgcc and libc's backtrace() are not really options for stack trace capturing from inside profiling signal handler. So lets warn people.
This commit is contained in:
parent
cef582350c
commit
f7ff175b92
@ -634,7 +634,7 @@ AC_OUTPUT
|
||||
|
||||
AS_IF([test "$x86_no_fp_by_default" = yes && test "x$enable_frame_pointers" != xyes && test "x$UNWIND_LIBS" = x && test "x$enable_minimal" != xyes],
|
||||
[AS_IF([test "x$perftools_cv_have_unwind_backtrace" = xyes],
|
||||
[AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc])],
|
||||
[AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc. Expect crashy cpu profiler.])],
|
||||
[AS_IF([test "x$enable_backtrace" = xyes],
|
||||
[AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace()])],
|
||||
[AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler.])],
|
||||
[AC_MSG_FAILURE([No frame pointers and no libunwind. The compilation will fail])])])])
|
||||
|
Loading…
Reference in New Issue
Block a user