-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update the Swift version to 6.0! #71707
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
Changes from all commits
af112c1
a3c3d3e
2173c52
a19021d
96d61d3
b488702
9a1d86c
b8cd763
6c306e3
cc69963
cb96ec2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory | ||
# can be reused when a new version of Swift comes out (assuming the user hasn't | ||
# manually set it as part of their own CMake configuration). | ||
set(SWIFT_VERSION_MAJOR 5) | ||
set(SWIFT_VERSION_MINOR 11) | ||
set(SWIFT_VERSION_MAJOR 6) | ||
set(SWIFT_VERSION_MINOR 0) | ||
set(SWIFT_VERSION "${SWIFT_VERSION_MAJOR}.${SWIFT_VERSION_MINOR}") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ namespace swift { | |
/// | ||
|
||
/// User-overridable language version to compile for. | ||
version::Version EffectiveLanguageVersion = version::Version::getCurrentLanguageVersion(); | ||
shahmishal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
version::Version EffectiveLanguageVersion = version::Version{5, 10}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shahmishal, do you plan to bump this to 6 soon? Otherwise, I'm seeing strange behavior like this when compiling code with the Swift 6 snapshots:
Of course, this can be worked around by explicitly setting the language version:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is expected, the Swift 6.0 language mode is not enabled by default. Developers are required to enable Swift 6 language mode by using https://www.swift.org/migration
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I now see this was discussed on the forum months ago, which I missed: I will ask about it there. |
||
|
||
/// Swift runtime version to compile for. | ||
version::Version RuntimeVersion = version::Version::getCurrentLanguageVersion(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.