diff options
author | Pavel Labath <pavel@labath.sk> | 2025-06-04 11:33:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 11:33:37 +0200 |
commit | 2c4f67794bff4df984b43db453fc0f5241ee72c8 (patch) | |
tree | 6090d02efb0027d33da359fca78974534741a182 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 159de3633640a5cb2d322ebe8cc4ec0c1c9a896d (diff) | |
download | llvm-2c4f67794bff4df984b43db453fc0f5241ee72c8.zip llvm-2c4f67794bff4df984b43db453fc0f5241ee72c8.tar.gz llvm-2c4f67794bff4df984b43db453fc0f5241ee72c8.tar.bz2 |
[lldb/cmake] Implicitly pass arguments to llvm_add_library (#142583)
If we're not touching them, we don't need to do anything special to pass
them along -- with one important caveat: due to how cmake arguments
work, the implicitly passed arguments need to be specified before
arguments that we handle.
This isn't particularly nice, but the alternative is enumerating all
arguments that can be used by llvm_add_library and the macros it calls
(it also relies on implicit passing of some arguments to
llvm_process_sources).
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt | 5 | ||||
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt index fd3118a..3d09cea 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt @@ -26,6 +26,8 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN PythonReadline.cpp ScriptInterpreterPython.cpp + LINK_COMPONENTS + Support LINK_LIBS lldbBreakpoint lldbCore @@ -37,7 +39,4 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN lldbPluginScriptInterpreterPythonInterfaces ${Python3_LIBRARIES} ${LLDB_LIBEDIT_LIBS} - - LINK_COMPONENTS - Support ) diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt index ee5e48a..db9e11b 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt @@ -29,6 +29,8 @@ add_lldb_library(lldbPluginScriptInterpreterPythonInterfaces PLUGIN ScriptedThreadPlanPythonInterface.cpp ScriptedThreadPythonInterface.cpp + LINK_COMPONENTS + Support LINK_LIBS lldbCore lldbHost @@ -36,9 +38,6 @@ add_lldb_library(lldbPluginScriptInterpreterPythonInterfaces PLUGIN lldbTarget ${Python3_LIBRARIES} ${LLDB_LIBEDIT_LIBS} - - LINK_COMPONENTS - Support ) |