This is an archive of the discontinued LLVM Phabricator instance.

Revert "Remove the LINK_COMPONENTS entry from lldb-instr CMakery"
ClosedPublic

Authored by aheejin on Mar 2 2023, 1:15 PM.

Details

Summary

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.

Diff Detail

Event Timeline

aheejin created this revision.Mar 2 2023, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2023, 1:15 PM
Herald added a subscriber: wingo. · View Herald Transcript
aheejin requested review of this revision.Mar 2 2023, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2023, 1:15 PM
aheejin edited the summary of this revision. (Show Details)Mar 2 2023, 1:15 PM

This will break the Xcode build again. It's being discussed here: https://github.com/llvm/llvm-project/issues/60314

Thanks for the info. I asked questions in https://github.com/llvm/llvm-project/issues/60314 but they were not answered either. What should I do with this CL? Can you at least let me know why this wouldn't work given that there are many files like this?

This revision is now accepted and ready to land.Mar 20 2023, 6:43 PM

Thanks for the investigation!