Remove the LINK_COMPONENTS entry from lldb-instr CMakery

The presence of this entry causes the Xcode generator to produce
two references to libLLVMSupport.a, one at the end of the list, and
that causes the build to fail with a link error.  The first version
was pulled in when processing the CLANG_LIBS entries in the
lldb/tools/lldb-instr/CMakeLists.txt.

I looked around and the only places where we use LINK_COMPONENTS and
CLANG_LIBS together are various lldb subdirectories that produce .a
files but don't actually link anything.

Anyway, this line doesn't seem to be needed for either the regular
Ninja or the Xcode generator, and removing it makes the xcode build
work again.

Differential Revision: https://reviews.llvm.org/D142241
This commit is contained in:
Jim Ingham
2023-01-20 15:40:55 -08:00
parent c7af1d19f3
commit e12a950d90

View File

@@ -11,6 +11,4 @@ add_lldb_tool(lldb-instr
clangSerialization
clangTooling
LINK_COMPONENTS
Support
)