[Lldb-commits] [lldb] [LLDB] Initial swift debugserver bringup (PR #233593)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 19 14:57:11 PDT 2026


================
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.31.0)
+
+project(swift-debugserver LANGUAGES C Swift)
+
+# Must go below project(..)
+include(GNUInstallDirs)
+
+if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+  set(LLDB_BUILT_STANDALONE ON)
+
+  set(CMAKE_MODULE_PATH
+    ${CMAKE_MODULE_PATH}
+    "${CMAKE_SOURCE_DIR}/../../cmake"
+    "${CMAKE_SOURCE_DIR}/../../cmake/modules")
+
+  include(LLDBStandalone)
+  include(debugserverConfig)
+  include(AddLLDB)
+
+  set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../")
+  include_directories(${LLDB_SOURCE_DIR}/include)
+endif()
+
+add_subdirectory(source)
----------------
bulbazord wrote:

We did not discuss it, but I figure this commit is the best place to do it. I wanted to make sure we establish the structure of the project before putting any actual meat into it.

`source` is the LLDB convention (which diverges from LLVM/Clang, and I think that's alright). I am open to using `Sources` because it is the Swift convention. Will update.

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


More information about the lldb-commits mailing list