Adds build support for Haiku OS to libunwind.
libunwind can now be built on Haiku OS with clang 12. make check-unwind also passes.
Paths
| Differential D157866
[libunwind] Haiku: Initial support ClosedPublic Authored by trungnt2910 on Aug 14 2023, 6:38 AM.
Details
Diff Detail Event TimelineComment Actions Added the full context. Seems like git format-patch does not include it by default...
Comment Actions The llvm-libunwind-shared.cfg.in chunk looks like it should probably be a separate commit, but make the sames changes for llvm-libunwind-merged.cfg.in and llvm-libunwind-static.cfg.in. I don't know if the tests have ever been run on OpenBSD but this looks like it would help other OS's that do not have libdl. trungnt2910 marked 3 inline comments as done. trungnt2910 added inline comments.
Comment Actions
Must it be in a different patch? The changes are relatively minor but required to test libunwind on Haiku (and therefore confirm that this patch is functional). Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 1 2023, 10:41 PM Comment Actions I am not a libunwind developer, but it looks good to me and looking at the libraries mentioned they do check out (libroot / libbsd). Comment Actions So, Haiku uses libroot instead of libc? The changes seem fine, but I hope that a Haiku contributor that is not the author can verify. Comment Actions
This is correct. On Haiku, the C and POSIX functions are in libroot (excluding network-related ones, which are in a separate library.) This revision is now accepted and ready to land.Sep 5 2023, 1:10 PM Closed by commit rG976dbae24638: [libunwind] Haiku: Initial support (authored by trungnt2910, committed by brad). · Explain WhySep 5 2023, 9:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 555561 libunwind/cmake/config-ix.cmake
libunwind/include/__libunwind_config.h
libunwind/src/CMakeLists.txt
libunwind/src/config.h
libunwind/test/configs/llvm-libunwind-merged.cfg.in
libunwind/test/configs/llvm-libunwind-shared.cfg.in
libunwind/test/configs/llvm-libunwind-static.cfg.in
|
Fix the indentation.