How to mitigate very long SwiftSyntax compilation times?

i have a project with a SwiftSyntax dependency, and the targets that use that dependency (specifically, the products IDEUtils and SwiftParser) take a long time to compile. (>10 min)

        .target(name: "MarkdownPluginSwift", dependencies:
            [
                .target(name: "MarkdownABI"),
                .product(name: "IDEUtils", package: "swift-syntax"),
                .product(name: "SwiftParser", package: "swift-syntax"),
            ]),

this is really weighing down our CI pipeline. is there a way to use a pre-built SwiftSyntax binary to speed up the compilation?

3 Likes