[Lldb-commits] [clang] [lldb] [llvm] [cmake] Add support for statically linking libxml2 (PR #166867)

Keith Smiley via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 4 09:19:03 PST 2025


================
@@ -190,3 +190,8 @@ add_lldb_library(lldbHost NO_PLUGIN_DEPENDENCIES
     ${LLDB_LIBEDIT_LIBS}
   )
 
+if (LLDB_ENABLE_LIBXML2 AND LLVM_USE_STATIC_LIBXML2)
+  target_link_libraries(lldbHost PRIVATE ${LIBXML2_LIBRARIES})
+  target_include_directories(lldbHost PUBLIC ${LIBXML2_INCLUDE_DIRS})
+  add_dependencies(lldbHost libxml2)
+endif()
----------------
keith wrote:

thanks for the feedback, my new pass maintains the existing API

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


More information about the lldb-commits mailing list