build: migrate to CMake based build of swift-format

This allows us to build swift-format with dynamic linking against the
toolchain build of the swift-syntax and swift-argument-parser packages.
Wire up the swift-markdown build and hoist the swift-format build prior
to sourcekit-lsp. This sets us up for supporting swift-format based
formatting in the LSP.
This commit is contained in:
Saleem Abdulrasool
2024-01-09 10:28:01 -08:00
parent 609eaf762e
commit 1864caad5e
5 changed files with 49 additions and 26 deletions

View File

@@ -1042,7 +1042,8 @@ function(_compile_swift_files
if (NOT SWIFTFILE_IS_MAIN)
add_custom_command_target(
module_dependency_target
COMMAND "${CMAKE_COMMAND}" -E make_directory ${dirs_to_create}
COMMAND
"${CMAKE_COMMAND}" -E make_directory ${dirs_to_create}
COMMAND
"${CMAKE_COMMAND}" "-E" "remove" "-f" ${module_outputs}
COMMAND