Skip to content

Commit ee20de7

Browse files
authored
Enable strict concurrency (#159)
### Motivation: Catch potential data races at build time. ### Modifications: Enabled strict concurrency complete checking. ### Result: Fewer potential data races can sneak in.
1 parent 1f82be2 commit ee20de7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Package.swift

+6
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ let package = Package(
4545
),
4646
]
4747
)
48+
49+
for target in package.targets {
50+
var settings = target.swiftSettings ?? []
51+
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
52+
target.swiftSettings = settings
53+
}

0 commit comments

Comments
 (0)