I'm trying to improve build times on windows, and one of my biggest issues at the moment is swift syntax. It seems there was one manifest (6.1) that included windows and linux, but since then they only include arm and x86 macOS. This is just a stab in the dark because I can't find a list of these manifests anywhere.
Is this a known issue? Is there a workaround? Can I create and host my own prebuilts?
You'll need to examine the SPM codebase or use an HTTP proxy tool to tell whether SPM still calls for manifests or the prebuilts for other OSes. In Swift 6.3 they moved to very specific OS version based URLs, so you can't get a list of available prebuilts anymore, you just have to try all the URLs.
For 6.3 (haven't confirmed 6.4 yet), the URLs are:
https://download.swift.org/prebuilts/swift-syntax/603.0.1/swiftlang-6.3.2.1.108-macosx26.5.json for the manifest. https://download.swift.org/prebuilts/swift-syntax/603.0.1/swiftlang-6.3.2.1.108-macosx26.5-MacroSupport.zip for the actual prebuilt.
You'll need to fill in the relevant versions and OS name.
The prebuilts are pretty much still an experimental feature. I am writing up a Swift Evolution proposal right now for 6.5 where it will graduate and I'll provide details of how it works there.