[PATCH] D135345: [libunwind] Add module maps for libunwind
Ian Anderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 13:54:24 PDT 2022
iana added a comment.
In D135345#3880719 <https://reviews.llvm.org/D135345#3880719>, @MaskRay wrote:
> Good point about libunwind headers are usually installed in /usr/include , shared with other system headers.
> Is there any information how Mach-O platforms use the modulemap file?
> IIUC non-Mach-O platforms will probably not benefit from `libunwind.modulemap`.
In the Apple platforms (I assume that's what you mean by Mach-O), it will consume these module maps from the usr/include/module.modulemap file that the OS provides like this.
extern module libunwind "libunwind.modulemap"
extern module unwind "libunwind.modulemap"
module Darwin [system] {
...
}
// and so on and so forth
Non-Apple platforms would do the same from their usr/include/module.modulemap file, if any other platform has that. (I don't know if Linux or Windows or any other platform has modularized their OS headers)
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