File tree Expand file tree Collapse file tree 6 files changed +17
-21
lines changed
Expand file tree Collapse file tree 6 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 1- // swift-tools-version: 5.8
1+ // swift-tools-version: 6.0
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
44import PackageDescription
@@ -16,26 +16,21 @@ let package = Package(
1616 ] ,
1717 exclude: [
1818 " Xcodeproj/README.md " ,
19- ] ,
20- swiftSettings: [
21- . enableExperimentalFeature( " StrictConcurrency " )
2219 ]
2320 ) ,
2421 . executableTarget(
2522 name: " swift-xcodegen " ,
2623 dependencies: [
2724 . product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
2825 " SwiftXcodeGen "
29- ] ,
30- swiftSettings: [
31- . enableExperimentalFeature( " StrictConcurrency " )
3226 ]
3327 ) ,
3428 . testTarget(
3529 name: " SwiftXcodeGenTest " ,
3630 dependencies: [ " SwiftXcodeGen " ]
3731 )
38- ]
32+ ] ,
33+ swiftLanguageModes: [ . v6]
3934)
4035
4136if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2024 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
99// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010//
1111//===----------------------------------------------------------------------===//
1212
13- struct BuildArgs {
13+ struct BuildArgs : Sendable {
1414 let command : KnownCommand
1515 private var topLevelArgs : [ Command . Argument ] = [ ]
1616 private var subOptArgs : [ SubOptionArgs ] = [ ]
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2024 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
1212
1313import Foundation
1414
15- struct ClangBuildArgsProvider {
15+ struct ClangBuildArgsProvider : Sendable {
1616 private var args = CommandArgTree ( )
1717 private var outputs : [ RelativePath : AbsolutePath ] = [ : ]
1818
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2024 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
@@ -17,7 +17,7 @@ struct RunnableTarget: Hashable {
1717 var path : AbsolutePath
1818}
1919
20- struct RunnableTargets {
20+ struct RunnableTargets : Sendable {
2121 private var addedPaths : Set < RelativePath > = [ ]
2222 private var targets : [ RunnableTarget ] = [ ]
2323
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2024 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
99// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010//
1111//===----------------------------------------------------------------------===//
1212
13- struct SwiftTargets {
13+ struct SwiftTargets : Sendable {
1414 private var targets : [ SwiftTarget ] = [ ]
1515
1616 private var outputAliases : [ String : [ String ] ] = [ : ]
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2024 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
99// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010//
1111//===----------------------------------------------------------------------===//
1212
13- final class SwiftTarget {
13+ // FIXME: Come up with a design to safely convince the compiler that this is never accessed concurrently.
14+ final class SwiftTarget : @unchecked Sendable {
1415 let name : String
1516 let moduleName : String
1617
@@ -41,16 +42,16 @@ extension SwiftTarget: CustomDebugStringConvertible {
4142}
4243
4344extension SwiftTarget {
44- struct Sources {
45+ struct Sources : Sendable {
4546 var repoSources : [ RelativePath ] = [ ]
4647 var externalSources : [ AbsolutePath ] = [ ]
4748 }
48- struct BuildRule {
49+ struct BuildRule : Sendable {
4950 var parentPath : RelativePath ?
5051 var sources : Sources
5152 var buildArgs : BuildArgs
5253 }
53- struct EmitModuleRule {
54+ struct EmitModuleRule : Sendable {
5455 var sources : Sources
5556 var buildArgs : BuildArgs
5657 }
You can’t perform that action at this time.
0 commit comments