[all-commits] [llvm/llvm-project] dfc207: [lldb] [utils] Fix linking lit-cpuid to LLVM dylib
Michał Górny via All-commits
all-commits at lists.llvm.org
Mon Dec 26 10:03:45 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dfc20708bcdf7b4c4bea8595fc4ac8674634d5e6
https://github.com/llvm/llvm-project/commit/dfc20708bcdf7b4c4bea8595fc4ac8674634d5e6
Author: Michał Górny <mgorny at gentoo.org>
Date: 2022-12-26 (Mon, 26 Dec 2022)
Changed paths:
M lldb/utils/lit-cpuid/CMakeLists.txt
Log Message:
-----------
[lldb] [utils] Fix linking lit-cpuid to LLVM dylib
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
More information about the All-commits
mailing list