Skip to content

Commit

Permalink
Enable strict concurrency (#159)
Browse files Browse the repository at this point in the history
### Motivation:

Catch potential data races at build time.

### Modifications:

Enabled strict concurrency complete checking.

### Result:

Fewer potential data races can sneak in.
  • Loading branch information
czechboy0 authored Nov 29, 2024
1 parent 1f82be2 commit ee20de7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ let package = Package(
),
]
)

for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
target.swiftSettings = settings
}

0 comments on commit ee20de7

Please sign in to comment.