[Lldb-commits] [lldb] [LLDB] Initial swift debugserver bringup (PR #233593)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 20 02:24:24 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)
----------------
DavidSpickett wrote:
Sticking to Swift conventions would make it easier for people like me who have not used Swift before. Fewer quirks to think about relative to whatever I would learn in the official Swift docs.
https://github.com/llvm/llvm-project/pull/233593
More information about the lldb-commits
mailing list