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

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 20 14:50:33 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:

I don't see any apple or swift guidance written down that suggests this (even though, anecdotally, this is the convention I've seen). @compnerd Do you have a link I can add here?

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


More information about the lldb-commits mailing list