[PATCH] D135345: [libunwind] Add module maps for libunwind
Ian Anderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 6 15:27:38 PDT 2022
iana added a comment.
In D135345#3841584 <https://reviews.llvm.org/D135345#3841584>, @MaskRay wrote:
> Can you state the motivation for this change?
It's so that usr/include/module.modulemap can include these modulemap files on Apple platforms (or other platforms that want them).
================
Comment at: libunwind/include/libunwind.modulemap:1
+module libunwind [system] {
+ header "libunwind.h"
----------------
libunwind.h includes Availability.h/AvailabilityMacros.h which are part of the `Darwin.Availability` module on Apple platforms.
The `Darwin` module will include the clang builtin header unwind.h, which does include_next to this unwind.h.
All together the module hierarchy will go `libunwind` -> `Darwin` -> `_Builtin_unwind` (coming soon) -> `unwind`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135345/new/
https://reviews.llvm.org/D135345
More information about the llvm-commits
mailing list