Build Information
Failed to build swift-driver, reference main (7a96ff
), with Swift 6.0 for Linux on 4 Nov 2024 01:58:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[403/423] Compiling SwiftDriver FileType.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[404/423] Compiling SwiftDriver PredictableRandomNumberGenerator.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[405/423] Compiling SwiftDriver RelativePathAdditions.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[406/423] Compiling SwiftDriver Sanitizer.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[407/423] Compiling SwiftDriver StringAdditions.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[408/423] Compiling SwiftDriver System.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[409/423] Compiling SwiftDriver Triple+Platforms.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[410/423] Compiling SwiftDriver Triple.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[411/423] Compiling SwiftDriver TypedVirtualPath.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[412/423] Compiling SwiftDriver Version.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[413/423] Compiling SwiftDriver VirtualPath.swift
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/FileType.swift:265:22: warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// The raw values for these enumerations describe the default extension for
16 | /// the file type.
17 | public enum FileType: String, Hashable, CaseIterable, Codable {
| `- note: consider making enum 'FileType' conform to the 'Sendable' protocol
18 | /// Swift source file.
19 | case swift
:
263 | extension FileType {
264 |
265 | private static let typesByName = Dictionary(uniqueKeysWithValues: FileType.allCases.map { ($0.name, $0) })
| |- warning: static property 'typesByName' is not concurrency-safe because non-'Sendable' type '[String : FileType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'typesByName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 | init?(name: String) {
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple+Platforms.swift:413:14: warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
336 | ///
337 | /// - SeeAlso: `Triple.supports(_:)`
338 | public struct FeatureAvailability {
| `- note: consider making struct 'FeatureAvailability' conform to the 'Sendable' protocol
339 |
340 | public enum Availability {
:
411 | /// ARC natively in their respective copies of the Objective-C runtime,
412 | /// and therefore do not require additional support libraries.
413 | static let nativeARC = Self(
| |- warning: static property 'nativeARC' is not concurrency-safe because non-'Sendable' type 'Triple.FeatureAvailability' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nativeARC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
414 | macOS: .available(since: Triple.Version(10, 11, 0)),
415 | iOS: .available(since: Triple.Version(9, 0, 0)),
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/Triple.swift:64:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Represents a version that may be present in the target triple.
63 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
64 | public static let zero = Version(0, 0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Triple.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | public var major: Int
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:33:22: warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// A virtual path.
32 | public enum VirtualPath: Hashable {
33 | private static var pathCache = PathCache()
| |- warning: static property 'pathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pathCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:35:22: warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private static var pathCache = PathCache()
34 |
35 | private static var temporaryFileStore = TemporaryFileStore()
| |- warning: static property 'temporaryFileStore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'temporaryFileStore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'temporaryFileStore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// A relative path that has not been resolved based on the current working
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:332:23: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
330 | }
331 |
332 | public static let standardOutput = Handle(-1)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | public static let standardInput = Handle(-2)
334 | }
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:333:23: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
323 | /// in the global path table ensures we only pay the cost at most once per
324 | /// path string.
325 | public struct Handle {
| `- note: consider making struct 'Handle' conform to the 'Sendable' protocol
326 | fileprivate var core: Int
327 |
:
331 |
332 | public static let standardOutput = Handle(-1)
333 | public static let standardInput = Handle(-2)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'VirtualPath.Handle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:149:24: warning: 'init(_:)' is deprecated: use throwing variant instead
147 | return .absolute(path.parentDirectory)
148 | case .relative(let path):
149 | return .relative(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:151:25: warning: 'init(_:)' is deprecated: use throwing variant instead
149 | return .relative(RelativePath(path.dirname))
150 | case .temporary(let path), .temporaryWithKnownContents(let path, _):
151 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:153:25: warning: 'init(_:)' is deprecated: use throwing variant instead
151 | return .temporary(RelativePath(path.dirname))
152 | case .fileList(let path, _):
153 | return .temporary(RelativePath(path.dirname))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
154 | case .standardInput, .standardOutput:
155 | assertionFailure("Can't get directory of stdin/stdout")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:207:24: warning: 'init(_:)' is deprecated: use throwing variant instead
205 | return .absolute(try AbsolutePath(validating: path.pathString + suffix))
206 | case let .relative(path):
207 | return .relative(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:209:25: warning: 'init(_:)' is deprecated: use throwing variant instead
207 | return .relative(RelativePath(path.pathString + suffix))
208 | case let .temporary(path):
209 | return .temporary(RelativePath(path.pathString + suffix))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:211:42: warning: 'init(_:)' is deprecated: use throwing variant instead
209 | return .temporary(RelativePath(path.pathString + suffix))
210 | case let .temporaryWithKnownContents(path, contents):
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:213:24: warning: 'init(_:)' is deprecated: use throwing variant instead
211 | return .temporaryWithKnownContents(RelativePath(path.pathString + suffix), contents)
212 | case let .fileList(path, content):
213 | return .fileList(RelativePath(path.pathString + suffix), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
214 | case .standardInput, .standardOutput:
215 | assertionFailure("Can't append path component to standard in/out")
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:456:12: warning: 'init(_:)' is deprecated: use throwing variant instead
454 | let dirName = path.dirname == "." ? "" : path.dirname
455 | let fileExtension = path.extension.map { ".\($0)" } ?? ""
456 | return RelativePath(dirName + uniquedBaseName + fileExtension)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
457 | }
458 |
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:652:24: warning: 'init(_:)' is deprecated: use throwing variant instead
650 | return .absolute(try AbsolutePath(validating: path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
651 | case let .relative(path):
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:654:25: warning: 'init(_:)' is deprecated: use throwing variant instead
652 | return .relative(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
653 | case let .temporary(path):
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:656:42: warning: 'init(_:)' is deprecated: use throwing variant instead
654 | return .temporary(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)))
655 | case let .temporaryWithKnownContents(path, contents):
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
/host/spi-builder-workspace/Sources/SwiftDriver/Utilities/VirtualPath.swift:658:24: warning: 'init(_:)' is deprecated: use throwing variant instead
656 | return .temporaryWithKnownContents(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), contents)
657 | case let .fileList(path, content):
658 | return .fileList(RelativePath(path.pathString.withoutExt(path.extension).appendingFileTypeExtension(fileType)), content)
| `- warning: 'init(_:)' is deprecated: use throwing variant instead
659 | case .standardInput, .standardOutput:
660 | return self
[414/424] Wrapping AST for SwiftDriver for debugging
[415/424] Write Objects.LinkFileList
[416/428] Linking libSwiftDriverDynamic.so
[418/428] Compiling SwiftDriverExecution SwiftDriverExecutor.swift
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:26:19: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
24 | public final class SwiftDriverExecutor: DriverExecutor {
25 | let diagnosticsEngine: DiagnosticsEngine
26 | let processSet: ProcessSet
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
27 | let fileSystem: FileSystem
28 | public let resolver: ArgsResolver
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:32:27: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
30 |
31 | public init(diagnosticsEngine: DiagnosticsEngine,
32 | processSet: ProcessSet,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
33 | fileSystem: FileSystem,
34 | env: [String: String]) throws {
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:92:92: warning: 'vars' is deprecated: Use `block` instead
90 |
91 | @discardableResult
92 | public func checkNonZeroExit(args: String..., environment: [String: String] = ProcessEnv.vars) throws -> String {
| `- warning: 'vars' is deprecated: Use `block` instead
93 | return try Process.checkNonZeroExit(arguments: args, environment: environment)
94 | }
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:93:24: warning: 'checkNonZeroExit(arguments:environment:loggingHandler:)' is deprecated: renamed to 'checkNonZeroExit(arguments:environmentBlock:loggingHandler:)'
91 | @discardableResult
92 | public func checkNonZeroExit(args: String..., environment: [String: String] = ProcessEnv.vars) throws -> String {
93 | return try Process.checkNonZeroExit(arguments: args, environment: environment)
| |- warning: 'checkNonZeroExit(arguments:environment:loggingHandler:)' is deprecated: renamed to 'checkNonZeroExit(arguments:environmentBlock:loggingHandler:)'
| `- note: use 'checkNonZeroExit(arguments:environmentBlock:loggingHandler:)' instead
94 | }
95 |
[419/428] Compiling SwiftDriverExecution llbuild.swift
/host/spi-builder-workspace/Sources/SwiftDriverExecution/llbuild.swift:24:22: warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
22 | // We either import the llbuildSwift shared library or the llbuild framework.
23 | #if canImport(llbuildSwift)
24 | @_implementationOnly import llbuildSwift
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
25 | @_implementationOnly import llbuild
26 | #else
[420/428] Emitting module SwiftDriverExecution
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:33:22: warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
31 | // We either import the llbuildSwift shared library or the llbuild framework.
32 | #if canImport(llbuildSwift)
33 | @_implementationOnly import llbuildSwift
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
34 | @_implementationOnly import llbuild
35 | #else
/host/spi-builder-workspace/Sources/SwiftDriverExecution/llbuild.swift:24:22: warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
22 | // We either import the llbuildSwift shared library or the llbuild framework.
23 | #if canImport(llbuildSwift)
24 | @_implementationOnly import llbuildSwift
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
25 | @_implementationOnly import llbuild
26 | #else
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:82:21: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
80 |
81 | /// The process set to use when launching new processes.
82 | let processSet: ProcessSet?
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
83 |
84 | /// If true, always use response files to pass command line arguments.
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:113:19: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
111 | executorDelegate: JobExecutionDelegate,
112 | jobQueue: OperationQueue,
113 | processSet: ProcessSet?,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
114 | forceResponseFiles: Bool,
115 | recordedInputModificationDates: [TypedVirtualPath: TimePoint],
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:257:27: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
255 |
256 | /// The process set to use when launching new processes.
257 | private let processSet: ProcessSet?
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
258 |
259 | /// If true, always use response files to pass command line arguments.
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:280:17: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
278 | diagnosticsEngine: DiagnosticsEngine,
279 | numParallelJobs: Int? = nil,
280 | processSet: ProcessSet? = nil,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
281 | forceResponseFiles: Bool = false,
282 | recordedInputModificationDates: [TypedVirtualPath: TimePoint] = [:],
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:26:19: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
24 | public final class SwiftDriverExecutor: DriverExecutor {
25 | let diagnosticsEngine: DiagnosticsEngine
26 | let processSet: ProcessSet
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
27 | let fileSystem: FileSystem
28 | public let resolver: ArgsResolver
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:32:27: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
30 |
31 | public init(diagnosticsEngine: DiagnosticsEngine,
32 | processSet: ProcessSet,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
33 | fileSystem: FileSystem,
34 | env: [String: String]) throws {
/host/spi-builder-workspace/Sources/SwiftDriverExecution/SwiftDriverExecutor.swift:92:92: warning: 'vars' is deprecated: Use `block` instead
90 |
91 | @discardableResult
92 | public func checkNonZeroExit(args: String..., environment: [String: String] = ProcessEnv.vars) throws -> String {
| `- warning: 'vars' is deprecated: Use `block` instead
93 | return try Process.checkNonZeroExit(arguments: args, environment: environment)
94 | }
[421/428] Compiling SwiftDriverExecution MultiJobExecutor.swift
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:33:22: warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
31 | // We either import the llbuildSwift shared library or the llbuild framework.
32 | #if canImport(llbuildSwift)
33 | @_implementationOnly import llbuildSwift
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SwiftDriverExecution' may lead to instability during execution
34 | @_implementationOnly import llbuild
35 | #else
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:82:21: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
80 |
81 | /// The process set to use when launching new processes.
82 | let processSet: ProcessSet?
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
83 |
84 | /// If true, always use response files to pass command line arguments.
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:113:19: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
111 | executorDelegate: JobExecutionDelegate,
112 | jobQueue: OperationQueue,
113 | processSet: ProcessSet?,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
114 | forceResponseFiles: Bool,
115 | recordedInputModificationDates: [TypedVirtualPath: TimePoint],
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:257:27: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
255 |
256 | /// The process set to use when launching new processes.
257 | private let processSet: ProcessSet?
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
258 |
259 | /// If true, always use response files to pass command line arguments.
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:280:17: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
278 | diagnosticsEngine: DiagnosticsEngine,
279 | numParallelJobs: Int? = nil,
280 | processSet: ProcessSet? = nil,
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
281 | forceResponseFiles: Bool = false,
282 | recordedInputModificationDates: [TypedVirtualPath: TimePoint] = [:],
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:561:7: warning: capture of 'self' with non-sendable type 'ExecuteJobRule' in a `@Sendable` closure; this is an error in the Swift 6 language mode
508 | }
509 | /// A rule for a single compiler invocation.
510 | class ExecuteJobRule: LLBuildRule {
| `- note: class 'ExecuteJobRule' does not conform to the 'Sendable' protocol
511 | struct RuleKey: LLBuildKey {
512 | typealias BuildValue = DriverBuildValue
:
559 | // is we should call it after inputsAvailable is called.
560 | context.jobQueue.addOperation {
561 | self.executeJob(engine)
| `- warning: capture of 'self' with non-sendable type 'ExecuteJobRule' in a `@Sendable` closure; this is an error in the Swift 6 language mode
562 | }
563 | }
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:561:23: warning: capture of 'engine' with non-sendable type 'LLTaskBuildEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
559 | // is we should call it after inputsAvailable is called.
560 | context.jobQueue.addOperation {
561 | self.executeJob(engine)
| `- warning: capture of 'engine' with non-sendable type 'LLTaskBuildEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
562 | }
563 | }
/host/spi-builder-workspace/Sources/SwiftDriverExecution/llbuild.swift:117:7: note: class 'LLTaskBuildEngine' does not conform to the 'Sendable' protocol
115 |
116 | // FIXME: Rename to something else.
117 | class LLTaskBuildEngine {
| `- note: class 'LLTaskBuildEngine' does not conform to the 'Sendable' protocol
118 |
119 | let engine: TaskBuildEngine
/host/spi-builder-workspace/Sources/SwiftDriverExecution/MultiJobExecutor.swift:661:24: warning: 'init(arguments:environment:exitStatus:output:stderrOutput:)' is deprecated: use `init(arguments:environmentBlock:exitStatus:output:stderrOutput:)`
659 | if (pendingFinish) {
660 | context.delegateQueue.sync {
661 | let result = ProcessResult(
| `- warning: 'init(arguments:environment:exitStatus:output:stderrOutput:)' is deprecated: use `init(arguments:environmentBlock:exitStatus:output:stderrOutput:)`
662 | arguments: [],
663 | environment: env,
[422/429] Wrapping AST for SwiftDriverExecution for debugging
[424/439] Compiling TestUtilities Fixture.swift
/host/spi-builder-workspace/Tests/TestUtilities/Fixture.swift:33:9: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
31 | ) -> AbsolutePath? {
32 | let packageRootPath: AbsolutePath =
33 | AbsolutePath(#file).parentDirectory.parentDirectory.parentDirectory
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
34 | let fixturePath =
35 | AbsolutePath(relativePath.pathString,
/host/spi-builder-workspace/Tests/TestUtilities/Fixture.swift:35:9: warning: 'init(_:relativeTo:)' is deprecated: use throwing `init(validating:relativeTo:)` variant instead
33 | AbsolutePath(#file).parentDirectory.parentDirectory.parentDirectory
34 | let fixturePath =
35 | AbsolutePath(relativePath.pathString,
| `- warning: 'init(_:relativeTo:)' is deprecated: use throwing `init(validating:relativeTo:)` variant instead
36 | relativeTo: packageRootPath.appending(component: "TestInputs"))
37 | .appending(component: file)
[425/439] Emitting module swift_driver
/host/spi-builder-workspace/Sources/swift-driver/main.swift:57:20: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
55 | signal(SIGINT, SIG_IGN)
56 | #endif
57 | let processSet = ProcessSet()
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
58 | interruptSignalSource.setEventHandler {
59 | // Terminate running compiler jobs and let the driver exit gracefully, remembering
/host/spi-builder-workspace/Sources/swift-driver/main.swift:66:17: warning: 'vars' is deprecated: Use `block` instead
64 | interruptSignalSource.resume()
65 |
66 | if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
| `- warning: 'vars' is deprecated: Use `block` instead
67 | CommandLine.arguments.append("-explicit-module-build")
68 | }
/host/spi-builder-workspace/Sources/swift-driver/main.swift:67:5: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
65 |
66 | if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
67 | CommandLine.arguments.append("-explicit-module-build")
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
68 | }
69 |
/host/spi-builder-workspace/Sources/swift-driver/main.swift:94:58: warning: 'vars' is deprecated: Use `block` instead
92 | processSet: processSet,
93 | fileSystem: localFileSystem,
94 | env: ProcessEnv.vars)
| `- warning: 'vars' is deprecated: Use `block` instead
95 | var driver = try Driver(args: arguments,
96 | diagnosticsOutput: .engine(diagnosticsEngine),
[426/439] Compiling swift_driver main.swift
/host/spi-builder-workspace/Sources/swift-driver/main.swift:57:20: warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
55 | signal(SIGINT, SIG_IGN)
56 | #endif
57 | let processSet = ProcessSet()
| `- warning: 'ProcessSet' is deprecated: Use `TaskGroup` with async `Process` APIs instead
58 | interruptSignalSource.setEventHandler {
59 | // Terminate running compiler jobs and let the driver exit gracefully, remembering
/host/spi-builder-workspace/Sources/swift-driver/main.swift:66:17: warning: 'vars' is deprecated: Use `block` instead
64 | interruptSignalSource.resume()
65 |
66 | if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
| `- warning: 'vars' is deprecated: Use `block` instead
67 | CommandLine.arguments.append("-explicit-module-build")
68 | }
/host/spi-builder-workspace/Sources/swift-driver/main.swift:67:5: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
65 |
66 | if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
67 | CommandLine.arguments.append("-explicit-module-build")
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
68 | }
69 |
/host/spi-builder-workspace/Sources/swift-driver/main.swift:94:58: warning: 'vars' is deprecated: Use `block` instead
92 | processSet: processSet,
93 | fileSystem: localFileSystem,
94 | env: ProcessEnv.vars)
| `- warning: 'vars' is deprecated: Use `block` instead
95 | var driver = try Driver(args: arguments,
96 | diagnosticsOutput: .engine(diagnosticsEngine),
/host/spi-builder-workspace/Sources/swift-driver/main.swift:40:6: error: main actor-isolated var 'driverInterrupted' can not be referenced from a nonisolated context
36 | let interruptSignalSource = DispatchSource.makeSignalSource(signal: SIGINT)
37 | let diagnosticsEngine = DiagnosticsEngine(handlers: [Driver.stderrDiagnosticsHandler])
38 | var driverInterrupted = false
| `- note: var declared here
39 | func getExitCode(_ code: Int32) -> Int32 {
| `- note: add '@MainActor' to make global function 'getExitCode' part of global actor 'MainActor'
40 | if driverInterrupted {
| `- error: main actor-isolated var 'driverInterrupted' can not be referenced from a nonisolated context
41 | interruptSignalSource.cancel()
42 | #if os(Windows)
/host/spi-builder-workspace/Sources/swift-driver/main.swift:41:5: warning: main actor-isolated let 'interruptSignalSource' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | import var TSCBasic.localFileSystem
35 |
36 | let interruptSignalSource = DispatchSource.makeSignalSource(signal: SIGINT)
| `- note: let declared here
37 | let diagnosticsEngine = DiagnosticsEngine(handlers: [Driver.stderrDiagnosticsHandler])
38 | var driverInterrupted = false
39 | func getExitCode(_ code: Int32) -> Int32 {
| `- note: add '@MainActor' to make global function 'getExitCode' part of global actor 'MainActor'
40 | if driverInterrupted {
41 | interruptSignalSource.cancel()
| `- warning: main actor-isolated let 'interruptSignalSource' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | #if os(Windows)
43 | TerminateProcess(GetCurrentProcess(), UINT(0xC0000000 | UINT(2)))
/host/spi-builder-workspace/Sources/swift-build-sdk-interfaces/main.swift:90:34: warning: 'vars' is deprecated: Use `block` instead
88 | try localFileSystem.createDirectory(outputDir, recursive: true)
89 | }
90 | let swiftcPathRaw = ProcessEnv.vars["SWIFT_EXEC"]
| `- warning: 'vars' is deprecated: Use `block` instead
91 | var swiftcPath: AbsolutePath
92 | if let swiftcPathRaw = swiftcPathRaw {
BUILD FAILURE 6.0 linux