Skip to content

Commit

Permalink
Swift 6 language mode is supported on Xcode 6 and higher.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 664892562
  • Loading branch information
allevato authored and swiple-rules-gardener committed Aug 19, 2024
1 parent c593bc4 commit 3cb393f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions swift/toolchains/xcode_swift_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -663,10 +663,7 @@ def _xcode_swift_toolchain_impl(ctx):
"swift.experimental.AccessLevelOnImport",
])

# TODO: b/336996662 - Use a very high Xcode version number until we've
# confirmed the actual Xcode release that ships with a compiler that
# supports `-swift-version 6`.
if _is_xcode_at_least_version(xcode_config, "999.0"):
if _is_xcode_at_least_version(xcode_config, "16.0"):
requested_features.append(SWIFT_FEATURE__SUPPORTS_V6)

unsupported_features.extend(build_mode_unsupported_features)
Expand Down

1 comment on commit 3cb393f

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please sign in to comment.