This is an archive of the discontinued LLVM Phabricator instance.

Don't add a dependency on the backtrace library if it can't be found.
Needs ReviewPublic

Authored by vharron on Dec 6 2017, 4:29 PM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
labath
Summary

In compiling lldb-server for my system image, I ran into a case where backtrace can't be found but it's being added to the list of system libs anyway. This change prevents that and allows linking.

Diff Detail

Event Timeline

vharron created this revision.Dec 6 2017, 4:29 PM
labath edited edge metadata.Dec 7 2017, 2:21 AM

The change makes sense, we just need to make the check cleaner.

source/Utility/CMakeLists.txt
25

Please use if (Backtrace_FOUND) here.

labath resigned from this revision.Nov 26 2018, 2:57 AM
labath added a subscriber: labath.