ensure _Unwind_Backtrace to actually be available
This commit is contained in:
parent
087ad5bf32
commit
4ffa98388f
@ -94,6 +94,10 @@ if (Unwind_FOUND)
|
|||||||
set (HAVE_LIB_UNWIND 1)
|
set (HAVE_LIB_UNWIND 1)
|
||||||
else (Unwind_FOUND)
|
else (Unwind_FOUND)
|
||||||
check_include_file_cxx (unwind.h HAVE_UNWIND_H)
|
check_include_file_cxx (unwind.h HAVE_UNWIND_H)
|
||||||
|
# Check whether linking actually succeeds. ARM toolchains of LLVM unwind
|
||||||
|
# implementation do not necessarily provide the _Unwind_Backtrace function
|
||||||
|
# which causes the previous check to succeed but the linking to fail.
|
||||||
|
check_cxx_symbol_exists (_Unwind_Backtrace unwind.h HAVE__UNWIND_BACKTRACE)
|
||||||
endif (Unwind_FOUND)
|
endif (Unwind_FOUND)
|
||||||
|
|
||||||
check_include_file_cxx (dlfcn.h HAVE_DLFCN_H)
|
check_include_file_cxx (dlfcn.h HAVE_DLFCN_H)
|
||||||
|
|||||||
@ -128,9 +128,9 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
|
|||||||
"src/stacktrace_generic-inl.h",
|
"src/stacktrace_generic-inl.h",
|
||||||
"src/stacktrace_libunwind-inl.h",
|
"src/stacktrace_libunwind-inl.h",
|
||||||
"src/stacktrace_powerpc-inl.h",
|
"src/stacktrace_powerpc-inl.h",
|
||||||
|
"src/stacktrace_unwind-inl.h",
|
||||||
"src/stacktrace_windows-inl.h",
|
"src/stacktrace_windows-inl.h",
|
||||||
"src/stacktrace_x86-inl.h",
|
"src/stacktrace_x86-inl.h",
|
||||||
"src/stacktrace_x86_64-inl.h",
|
|
||||||
"src/symbolize.cc",
|
"src/symbolize.cc",
|
||||||
"src/symbolize.h",
|
"src/symbolize.h",
|
||||||
"src/utilities.cc",
|
"src/utilities.cc",
|
||||||
|
|||||||
@ -118,6 +118,9 @@
|
|||||||
/* Define if you have the <unwind.h> header file. */
|
/* Define if you have the <unwind.h> header file. */
|
||||||
#cmakedefine HAVE_UNWIND_H
|
#cmakedefine HAVE_UNWIND_H
|
||||||
|
|
||||||
|
/* Define if you linking to _Unwind_Backtrace is possible. */
|
||||||
|
#cmakedefine HAVE__UNWIND_BACKTRACE
|
||||||
|
|
||||||
/* define if the compiler supports using expression for operator */
|
/* define if the compiler supports using expression for operator */
|
||||||
#cmakedefine HAVE_USING_OPERATOR
|
#cmakedefine HAVE_USING_OPERATOR
|
||||||
|
|
||||||
|
|||||||
@ -88,8 +88,8 @@
|
|||||||
|
|
||||||
#if defined(HAVE_LIB_UNWIND)
|
#if defined(HAVE_LIB_UNWIND)
|
||||||
# define STACKTRACE_H "stacktrace_libunwind-inl.h"
|
# define STACKTRACE_H "stacktrace_libunwind-inl.h"
|
||||||
#elif defined(HAVE_UNWIND_H)
|
#elif defined(HAVE__UNWIND_BACKTRACE)
|
||||||
# define STACKTRACE_H "stacktrace_x86_64-inl.h"
|
# define STACKTRACE_H "stacktrace_unwind-inl.h"
|
||||||
#elif !defined(NO_FRAME_POINTER)
|
#elif !defined(NO_FRAME_POINTER)
|
||||||
# if defined(__i386__) && __GNUC__ >= 2
|
# if defined(__i386__) && __GNUC__ >= 2
|
||||||
# define STACKTRACE_H "stacktrace_x86-inl.h"
|
# define STACKTRACE_H "stacktrace_x86-inl.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user