Skip to content

Basic: Limit version::getCompilerversion() to major + minor only #79437

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

tshortli
Copy link
Contributor

Revert to printing just the major and minor version for -interface-compiler-version in order to temporarily preserve backward compatibility with release/6.1 compilers.

Resolves rdar://144964099.

At the moment the only user of this method is `-interface-compiler-version`
and it's checked against major + minor only, so this is not going
to affect functionality.

In the future we should switch from `llvm::VersionTuple` to `swift::Version`
because swift tags have five components.

Resolves: rdar://140006577
@tshortli tshortli requested a review from xedin February 17, 2025 16:50
@tshortli tshortli requested a review from DougGregor as a code owner February 17, 2025 16:50
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge February 17, 2025 17:53
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit b4640d1 into swiftlang:main Feb 18, 2025
3 checks passed
@tshortli tshortli deleted the fix-interface-compiler-version-condfail branch February 18, 2025 23:56
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