This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [utils] Fix linking lit-cpuid to LLVM dylib
ClosedPublic

Authored by mgorny on Dec 26 2022, 5:34 AM.

Details

Summary

Use LINK_COMPONENTS instead of manual target_link_libraries to link
lit-cpuid to LLVM components. This ensures that dylib is used along
with LLVM_LINK_LLVM_DYLIB rather than linking to component libraries
that may not be installed.

This fixes build failure on Gentoo after a dep on TargetParser component
was added in f09cf34d00625e57dea5317a3ac0412c07292148.

Diff Detail

Event Timeline

mgorny created this revision.Dec 26 2022, 5:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 26 2022, 5:34 AM
mgorny requested review of this revision.Dec 26 2022, 5:34 AM
lenary accepted this revision.Dec 26 2022, 9:37 AM
lenary added a subscriber: lenary.

This looks better to me!

This revision is now accepted and ready to land.Dec 26 2022, 9:37 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 26 2022, 10:03 AM