mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user