Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a prebuilt swift-syntax library for macros #8142

Merged
merged 25 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4de8400
[WIP] Add support for prebuilt libraries, specifically swift-syntax
dschaefer2 Nov 27, 2024
ecbfd4e
Get bootstrap and tests building.
dschaefer2 Nov 27, 2024
d8bb3fd
Add progress messages for prebuilts download.
dschaefer2 Nov 28, 2024
a725ca6
Started utility to build prebuilts.
dschaefer2 Dec 2, 2024
c6f8b18
Add publishing of prebuilts for Windows.
dschaefer2 Dec 3, 2024
e371880
Fix linking on Windows.
Dec 3, 2024
1961868
Make sure update prebuilts is called from all paths.
dschaefer2 Dec 4, 2024
2f2bf48
Complete prebuilts generator.
dschaefer2 Dec 10, 2024
6ebb14f
Merge branch 'main' of https://github.com/swiftlang/swift-package-man…
dschaefer2 Dec 10, 2024
2dc8caa
Fix when there is no manifest file yet.
dschaefer2 Dec 10, 2024
5b4d66f
Fix up Linux distro selectors.
dschaefer2 Dec 11, 2024
15a3811
Use absolute path to tar.exe.
dschaefer2 Dec 12, 2024
3521f30
Completed initial test suite.
dschaefer2 Dec 16, 2024
fd036a6
Added option to turn off, default is off until more testing.
dschaefer2 Dec 16, 2024
511542c
Merge remote-tracking branch 'origin/main' into prebuilts
dschaefer2 Dec 16, 2024
aaa883a
Add new source file to CMakeLists.
dschaefer2 Dec 17, 2024
97311e4
Added missing source to Workspace CMakeLists.txt file.
dschaefer2 Dec 17, 2024
66d016c
Fix tests on Windows.
dschaefer2 Dec 17, 2024
3f09afa
Better way to finding tar on Windows plus other review comments.
dschaefer2 Dec 18, 2024
8481aee
Remove debug print from ZipArchiver.
dschaefer2 Dec 18, 2024
2e91718
Adopt ArgumentParser and AbsolutePath in the prebuilt build script.
dschaefer2 Dec 20, 2024
d30d2ae
Some final cleanup based on comments.
dschaefer2 Dec 20, 2024
fcdaf0d
Final fixes to get the build and tests on Windows.
dschaefer2 Dec 20, 2024
7eafe65
Switch to using AsyncProcess in the build prebuilts script.
dschaefer2 Dec 20, 2024
0e6631f
Fix AsyncProcess call from BuildPrebuilts on Windows.
dschaefer2 Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/swift-build-prebuilts/BuildPrebuilts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,13 @@ struct BuildPrebuilts: AsyncParsableCommand {
if code != 0 {
throw StringError("Command exited with code \(code): \(command)")
}
#if os(Windows)
case .abnormal(exception: let exception):
dschaefer2 marked this conversation as resolved.
Show resolved Hide resolved
dschaefer2 marked this conversation as resolved.
Show resolved Hide resolved
throw StringError("Command threw exception \(exception): \(command)")
#else
case .signalled(signal: let signal):
throw StringError("Command exited on signal \(signal): \(command)")
#endif
}
}

Expand Down