Skip to content

Commit f48d53c

Browse files
bulbazordgithub-actions[bot]
authored andcommitted
Automerge: Re-land [lldb][NFC] Mark ValueObject library with NO_PLUGIN_DEPENDENCIES (#167933)
This is a fixed version of #167886. The build previously failed with `BUILD_SHARED_LIBS=ON`. After trying that locally, I uncovered a few other instances of lldb non-plugin libraries depending on clang transitively through lldbValueObject, so I added the correct clang libraries to their dependencies.
2 parents 26342e7 + 3a08e42 commit f48d53c

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

lldb/source/Commands/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ add_lldb_library(lldbCommands NO_PLUGIN_DEPENDENCIES
5858
lldbUtility
5959
lldbValueObject
6060
lldbVersion
61+
CLANG_LIBS
62+
clangFrontend
63+
clangSerialization
6164
)
6265

6366
add_dependencies(lldbCommands LLDBOptionsGen)

lldb/source/Expression/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ add_lldb_library(lldbExpression NO_PLUGIN_DEPENDENCIES
2424

2525
LINK_COMPONENTS
2626
Core
27+
DebugInfoDWARF
2728
ExecutionEngine
2829
Support
2930
LINK_LIBS

lldb/source/ValueObject/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_lldb_library(lldbValueObject
1+
add_lldb_library(lldbValueObject NO_PLUGIN_DEPENDENCIES
22
DILAST.cpp
33
DILEval.cpp
44
DILLexer.cpp
@@ -34,6 +34,4 @@ add_lldb_library(lldbValueObject
3434
lldbSymbol
3535
lldbTarget
3636
lldbUtility
37-
lldbPluginCPlusPlusLanguage
38-
lldbPluginObjCLanguage
3937
)

lldb/source/Version/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ add_lldb_library(lldbVersion NO_PLUGIN_DEPENDENCIES
4040
ADDITIONAL_HEADERS
4141
${version_inc}
4242
${vcs_version_inc}
43+
44+
CLANG_LIBS
45+
clangBasic
4346
)

0 commit comments

Comments
 (0)