Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | Musl does not have stack unwinder like glibc therefore |
| 2 | we can not assume that its always available on musl, we |
| 3 | do need to check for target environment as well which |
| 4 | could be musl or glibc. |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- a/mozglue/misc/StackWalk.cpp |
| 9 | +++ b/mozglue/misc/StackWalk.cpp |
| 10 | @@ -44,7 +44,7 @@ using namespace mozilla; |
| 11 | # define MOZ_STACKWALK_SUPPORTS_MACOSX 0 |
| 12 | #endif |
| 13 | |
| 14 | -#if (defined(linux) && \ |
| 15 | +#if (defined(linux) && defined(__GLIBC__) && \ |
| 16 | ((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \ |
| 17 | defined(HAVE__UNWIND_BACKTRACE))) |
| 18 | # define MOZ_STACKWALK_SUPPORTS_LINUX 1 |