You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runtime: fix compile failure from use of _Unwind_Backtrace() on FreeBSD
FreeBSD uses libunwind from <https://github.com/libunwind/libunwind>. Its
<unwind.h> guards _Unwind_Backtrace with _GNU_SOURCE guards. Define _GNU_SOURCE
so that withCurrentBacktraceImpl() can access _Unwind_Backtrace.
Note that there are quite a few <unwind.h>s:
1. gcc provides one as part of its libgcc (FreeBSD does not use gcc and provides
its own libgcc that does not have an <unwind.h>)
2. LLVM's libunwind provides one (FreeBSD does not use LLVM's libcxxabi or
LLVM's libunwind)
3. <https://github.com/libunwind/libunwind> provides one (FreeBSD has this one)
4. clang provides one (FreeBSD *has* this one, but the header search path for
C++ prefers swiftlang#3)
0 commit comments