This is an archive of the discontinued LLVM Phabricator instance.

[libcxxabi] Add lib directory to linker paths when using libunwind
ClosedPublic

Authored by phosek on Aug 8 2016, 5:28 PM.

Details

Summary

When using libunwind and not building as standalone project, we need to add LLVM library directory to the list of linker directories to ensure it can find libunwind dependency.

This wasn't previously needed since there was only only one unwind target and CMake resolved the name directly. However, with the latest change which allows building both static and shared version of libunwind in one build, that's no longer the case.

This fixes the failure introduced in the latest libunwind change.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek updated this revision to Diff 67258.Aug 8 2016, 5:28 PM
phosek retitled this revision from to [libcxxabi] Add lib directory to list of linker directories.
phosek updated this object.
phosek added reviewers: EricWF, compnerd.
phosek retitled this revision from [libcxxabi] Add lib directory to list of linker directories to [libcxxabi] Add lib directory to linker paths when using libunwind.
phosek added a subscriber: llvm-commits.
compnerd accepted this revision.Aug 8 2016, 5:32 PM
compnerd edited edge metadata.
This revision is now accepted and ready to land.Aug 8 2016, 5:32 PM
This revision was automatically updated to reflect the committed changes.