diff options
| author | Rin Cat (鈴猫) <dev@rincat.ch> | 2022-08-18 16:21:54 -0400 |
|---|---|---|
| committer | Rin Cat (鈴猫) <dev@rincat.ch> | 2022-08-18 16:21:54 -0400 |
| commit | 1d4cb4ba641e7b3662f7cd498865a2ceea62ec47 (patch) | |
| tree | c91282dd575b05e676c2e58730e0418fef422750 /numpy/linalg | |
| parent | e8c45599c3272b7c9e32bb1444001fd0a6a83fcb (diff) | |
| download | numpy-1d4cb4ba641e7b3662f7cd498865a2ceea62ec47.tar.gz | |
BUG: Support using libunwind for backtrack
Some system (e.g. musl) do not have "execinfo.h", and the backtracking
is provided by libunwind.
Fix: #22084
Diffstat (limited to 'numpy/linalg')
| -rw-r--r-- | numpy/linalg/umath_linalg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/linalg/umath_linalg.cpp b/numpy/linalg/umath_linalg.cpp index bbeb37906..bbb4bb896 100644 --- a/numpy/linalg/umath_linalg.cpp +++ b/numpy/linalg/umath_linalg.cpp @@ -50,7 +50,11 @@ using dispatch_scalar = typename std::conditional<std::is_scalar<typ>::value, sc } while (0) #if 0 +#if defined HAVE_EXECINFO_H #include <execinfo.h> +#elif defined HAVE_LIBUNWIND_H +#include <libunwind.h> +#endif void dbg_stack_trace() { |
