Skip to content

Use swiftCompilerTag for the swift compiler version #8959

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

Merged
merged 2 commits into from
Jul 22, 2025

Conversation

dschaefer2
Copy link
Member

@dschaefer2 dschaefer2 commented Jul 21, 2025

The swiftCompilerTag field has been recently added to the swiftc -print-target-info JSON we use to determine the swift compiler version for prebuilts. Use this field as the default value, falling back to extracting the swift compiler version from the compilerVersion field using a regex.

This gives us much better version numbers since it matches the tags for the toolchain.

Also add in the redirect url, https://github.com/apple/swift-syntax.git, as a supported option.

@dschaefer2
Copy link
Member Author

@swift-ci please test windows

dschaefer2 added a commit that referenced this pull request Jul 22, 2025
Cherry pick #8959

The swiftCompilerTag field has been recently added to the swiftc
-print-target-info JSON we use to determine the swift compiler version
for prebuilts. Use this field as the default value, falling back to
extracting the swift compiler version from the compilerVersion field
using a regex.

This gives us much better version numbers since it matches the tags for
the toolchain.

Also add in the redirect url, https://github.com/apple/swift-syntax.git,
as a supported option.
@dschaefer2 dschaefer2 merged commit 4bc76e0 into swiftlang:main Jul 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants