Skip to content

Commit 7d1fd1c

Browse files
authored
Adds targeted strict concurrency setting (#295)
Bumps package file to 5.9 swift tools
1 parent 249a89c commit 7d1fd1c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Package.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -234,3 +234,9 @@ extension PackageDescription.Product {
234234
.library(name: name, targets: [name])
235235
}
236236
}
237+
238+
for target in package.targets {
239+
var settings = target.swiftSettings ?? []
240+
settings.append(.enableExperimentalFeature("StrictConcurrency=targeted"))
241+
target.swiftSettings = settings
242+
}

0 commit comments

Comments
 (0)