[PATCH] D96563: gn build: Support cross-compiling libunwind for Android.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 16:42:50 PST 2021
pcc created this revision.
pcc added reviewers: thakis, phosek.
Herald added a subscriber: danielkiss.
pcc requested review of this revision.
Herald added a project: LLVM.
- Usual cross-compilation fix: s/target_/current_/g
- Define _LIBUNWIND_IS_NATIVE_ONLY to enable unwinding past functions with return pointer authentication.
- Android needs two libunwind static libraries: one with symbols exported and one without. These both need to be in the same build tree so the libunwind_hermetic_static_library configuration option doesn't help here. Replace it with build rules that build both libraries.
- Install the libraries in the location that Android expects them to be.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96563
Files:
llvm/utils/gn/secondary/libunwind/BUILD.gn
llvm/utils/gn/secondary/libunwind/src/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96563.323187.patch
Type: text/x-patch
Size: 4930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210212/9b8821fd/attachment.bin>
More information about the llvm-commits
mailing list