Skip to content

Commit b6a3d95

Browse files
authored
Add build prebuilts support for any version of swift-syntax. (#8994)
Removes the hardcoding of the contents of the prebuilt libraries. Adds a --version argument to specify which versions of swift-syntax you want to build for. You can have multiple of these. We add a sample build.sh script to the folder to show an example, including finding the most recent prerelease of 602. Also removes the hardcoding of the list of products that go into the library. Instead we ask the package for its list of library products and add them all. Finally, removes the header files since SwiftPM now hooks up the include paths to the CModules from the source in the checkouts.
1 parent a4b2da7 commit b6a3d95

File tree

3 files changed

+245
-341
lines changed

3 files changed

+245
-341
lines changed

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@ let package = Package(
786786
.product(name: "ArgumentParser", package: "swift-argument-parser"),
787787
"Basics",
788788
"Workspace",
789+
],
790+
exclude: [
791+
"build.sh"
789792
]
790793
),
791794

0 commit comments

Comments
 (0)