From 3cb393fa0bcf8b5e63c875b23ff5779daaf20acd Mon Sep 17 00:00:00 2001 From: Tony Allevato Date: Mon, 19 Aug 2024 11:17:07 -0700 Subject: [PATCH] Swift 6 language mode is supported on Xcode 6 and higher. PiperOrigin-RevId: 664892562 --- swift/toolchains/xcode_swift_toolchain.bzl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swift/toolchains/xcode_swift_toolchain.bzl b/swift/toolchains/xcode_swift_toolchain.bzl index 9027f7eb2..39e450ed3 100644 --- a/swift/toolchains/xcode_swift_toolchain.bzl +++ b/swift/toolchains/xcode_swift_toolchain.bzl @@ -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)