Skip to content

Commit be0dc1e

Browse files
committed
Add unchecked Sendable to Bundle in resource generation
1 parent 0189fb7 commit be0dc1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@ package final class SwiftTargetBuildDescription {
393393
"""
394394
import Foundation
395395
396+
#if compiler(>=6.0)
397+
extension Foundation.Bundle: @unchecked @retroactive Sendable {}
398+
#else
399+
extension Foundation.Bundle: @unchecked Sendable {}
400+
#endif
396401
extension Foundation.Bundle {
397402
static let module: Bundle = {
398403
let mainPath = \(mainPathSubstitution)

0 commit comments

Comments
 (0)