| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_ |
| #define ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_ |
|
|
| #include "absl/base/config.h" |
|
|
| #if defined(ABSL_STACKTRACE_INL_HEADER) |
| #error ABSL_STACKTRACE_INL_HEADER cannot be directly set |
|
|
| #elif defined(_WIN32) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_win32-inl.inc" |
|
|
| #elif defined(__APPLE__) |
| #ifdef ABSL_HAVE_THREAD_LOCAL |
| |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_generic-inl.inc" |
| #endif |
|
|
| |
| #elif defined(__EMSCRIPTEN__) && !defined(STANDALONE_WASM) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_emscripten-inl.inc" |
|
|
| #elif defined(__linux__) && !defined(__ANDROID__) |
|
|
| #if defined(NO_FRAME_POINTER) && \ |
| (defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)) |
| |
| |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_libunwind-inl.inc" |
| #define STACKTRACE_USES_LIBUNWIND 1 |
| #elif defined(NO_FRAME_POINTER) && defined(__has_include) |
| #if __has_include(<execinfo.h>) |
| |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_generic-inl.inc" |
| #endif |
| #elif defined(__i386__) || defined(__x86_64__) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_x86-inl.inc" |
| #elif defined(__ppc__) || defined(__PPC__) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_powerpc-inl.inc" |
| #elif defined(__aarch64__) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_aarch64-inl.inc" |
| #elif defined(__riscv) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_riscv-inl.inc" |
| #elif defined(__has_include) |
| #if __has_include(<execinfo.h>) |
| |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_generic-inl.inc" |
| #endif |
| #endif |
|
|
| #endif |
|
|
| |
| #if !defined(ABSL_STACKTRACE_INL_HEADER) |
| #define ABSL_STACKTRACE_INL_HEADER \ |
| "absl/debugging/internal/stacktrace_unimplemented-inl.inc" |
| #endif |
|
|
| #endif |
|
|