[Lldb-commits] [lldb] [LLDB] Initial swift debugserver bringup (PR #233593)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 19 15:47:23 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)
----------------
compnerd wrote:
I don't think it needs to be set in stone, and if others have objections to it, then we can change it back. I do think that using the language's recommendations will be better for the project in the longer term. Doing it now just eases that by avoiding the "reformat the codebase" approach that we needed to take in LLDB's past.
https://github.com/llvm/llvm-project/pull/233593
More information about the lldb-commits
mailing list