diff --git a/Sources/sourcekit-lsp/CMakeLists.txt b/Sources/sourcekit-lsp/CMakeLists.txt index 17bc9d794..3ef4198be 100644 --- a/Sources/sourcekit-lsp/CMakeLists.txt +++ b/Sources/sourcekit-lsp/CMakeLists.txt @@ -1,6 +1,6 @@ add_executable(sourcekit-lsp - SourceKitLSP.swift) + main.swift) target_link_libraries(sourcekit-lsp PRIVATE ArgumentParser LanguageServerProtocolJSONRPC diff --git a/Sources/sourcekit-lsp/SourceKitLSP.swift b/Sources/sourcekit-lsp/main.swift similarity index 99% rename from Sources/sourcekit-lsp/SourceKitLSP.swift rename to Sources/sourcekit-lsp/main.swift index b8437833b..ba69b080e 100644 --- a/Sources/sourcekit-lsp/SourceKitLSP.swift +++ b/Sources/sourcekit-lsp/main.swift @@ -54,7 +54,6 @@ extension PathPrefixMapping: ExpressibleByArgument { extension LogLevel: ExpressibleByArgument {} extension BuildConfiguration: ExpressibleByArgument {} -@main struct SourceKitLSP: ParsableCommand { static let configuration = CommandConfiguration( abstract: "Language Server Protocol implementation for Swift and C-based languages" @@ -210,3 +209,5 @@ struct SourceKitLSP: ParsableCommand { dispatchMain() } } + +SourceKitLSP.main()