Skip to content

Commit c1ca699

Browse files
committed
[utils] swift-xcodegen: Bump tools version to 6.0
1 parent 158729c commit c1ca699

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

utils/swift-xcodegen/Package.swift

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
import 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

4136
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {

utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/BuildArgs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
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] = []

utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/ClangBuildArgsProvider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
@@ -12,7 +12,7 @@
1212

1313
import Foundation
1414

15-
struct ClangBuildArgsProvider {
15+
struct ClangBuildArgsProvider: Sendable {
1616
private var args = CommandArgTree()
1717
private var outputs: [RelativePath: AbsolutePath] = [:]
1818

utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/RunnableTargets.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/SwiftTargets.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
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]] = [:]

utils/swift-xcodegen/Sources/SwiftXcodeGen/Generator/SwiftTarget.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
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

4344
extension 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
}

0 commit comments

Comments
 (0)