[cfe-dev] Purpose of unwind.h in libunwind and clang Headers

Markus Böck via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 27 04:30:35 PST 2020


Hello everyone!

I am wondering what the purpose of having both unwind.h in libunwind and
the clang Headers is. I see that they have quite a lot but not fully equal
declarations. I am asking because currently I am running into issues
building libc++abi with llvm libunwind support on Windows as the include
here:
https://github.com/llvm/llvm-project/blob/8f3d47c54ac21f99b25d8ad00598b7f5be00d6d8/libcxxabi/src/cxa_personality.cpp#L23
includes the libunwind unwind.h instead of the one from the clang resource
folder. This leads to a build failure as _Unwind_Personality_Fn used below
is not defined in llvm libunwind.

Would fixing this just require fixing the include paths in cmake or is the
problem somewhere deeper?

Regards
Markus Böck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200127/991c7e22/attachment.html>


More information about the cfe-dev mailing list