mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 01:56:05 +00:00

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. Differential Revision: https://reviews.llvm.org/D140671