Skip to content

[6.2] Add the distribution tag to -print-target-info #81873

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

Conversation

bnbarham
Copy link
Contributor

  • Explanation: Adds a new swiftCompilerTag to -print-target-info that contains just the tag.
  • Scope: swift -print-target-info
  • Original PRs: Add the distribution tag to -print-target-info #81697
  • Risk: The main risk here is the removal of isCurrentCompilerTagged and corresponding serialization changes. Happy to remove those for 6.2 if we feel it's necessary. The change is otherwise just adding a new field to some command line output, so zero risk there.
  • Testing: Prints out the tag when it's provided
  • Reviewers: @shahmishal

Ideally this would also update the `--version` output to be overridden
by `SWIFT_TOOLCHAIN_VERSION`, but unfortunately various tools rely on
the current format (eg. swift-build).

(cherry picked from commit 3c09878)
@bnbarham bnbarham requested a review from a team as a code owner May 30, 2025 17:10
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

@swift-ci please test Windows platform

@shahmishal shahmishal merged commit 76eac9b into swiftlang:release/6.2 May 31, 2025
5 checks passed
@bnbarham bnbarham deleted the cherry-use-toolchain-version branch June 2, 2025 04:31
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.

2 participants