This reverts commit e12a950d90f88aeddaa97d6e7c8fd0bfedc42f73.
D142241 broke -sBUILD_SHARED_LIBS=ON build. I commented on that CL
about this issue, and also asked the same question on the LLVM discourse
(https://discourse.llvm.org/t/build-shared-libs-on-doesnt-work-with-lldb-instr/68793),
but neither was answered.
As I asked on the post, it looks the CL description says having
CLANG_LIBS and LINK_COMPONENTS Support within a single file is a
problem, but there are many files in lldb that use both, so I don't
understand what was the issue:
./lldb/source/Core/CMakeLists.txt ./lldb/source/Plugins/TypeSystem/Clang/CMakeLists.txt ./lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt ./lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/CMakeLists.txt ./lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt ./lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt ./lldb/source/Plugins/SymbolFile/DWARF/CMakeLists.txt ./lldb/source/Plugins/SymbolFile/NativePDB/CMakeLists.txt ./lldb/source/Plugins/SymbolFile/PDB/CMakeLists.txt
I'd hope to at least get the answers why D142241 was necessary this
time.