[Lldb-commits] [lldb] [lldb] Add an option to build liblldb statically (PR #223210)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 15 13:03:58 PDT 2026


================
@@ -160,7 +166,20 @@ set_target_properties(liblldb
 )
 
 target_compile_definitions(liblldb PRIVATE LLDB_IN_LIBLLDB)
-if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
+
+if(LLDB_BUILD_STATIC_LIBLLDB)
+  install(TARGETS liblldb
----------------
bulbazord wrote:

Do you think you'll want to install any other LLDB static archives or just liblldb? If there's more than one then this logic should live in `add_lldb_library`. Otherwise it's fine for it to stay here.

https://github.com/llvm/llvm-project/pull/223210


More information about the lldb-commits mailing list