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

Allow switching the Swift version in expressions #8775

Merged
merged 2 commits into from
May 21, 2024

Conversation

adrian-prantl
Copy link
Member

No description provided.

@adrian-prantl
Copy link
Member Author

@swift-ci test

@adrian-prantl
Copy link
Member Author

@swift-ci test

llvm::VersionTuple(version / 100, version % 100);
}
if (lang_opts.EffectiveLanguageVersion >= swift::version::Version({6}))
lang_opts.StrictConcurrencyLevel = swift::StrictConcurrency::Complete;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the compiler not do this when the version is set to >=6? If lldb is doing this, but the compiler isn't, is that going to cause some issues in some cases?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, I'm confused by the title. The diff appears to affect StrictConcurrencyLevel, and the language version already appears supported.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both excellent questions. I asked, and the compiler sets this flag in an ad-hoc fashion that isn't readily available to reuse. This also seems to be the only flag that behaves this way.

The title is wrong. This just adds a test.

@adrian-prantl
Copy link
Member Author

@swift-ci test linux

@adrian-prantl
Copy link
Member Author

test with apple/swift#73757
@swift-ci test linux

@adrian-prantl adrian-prantl merged commit 73587af into apple:swift/release/6.0 May 21, 2024
3 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.

None yet

4 participants