Skip to content

Commit e46a477

Browse files
committed
Make strict concurrency flags enableable
1 parent 8af98fd commit e46a477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ let swiftSystem: PackageDescription.Target.Dependency = .product(
2727
condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .linux, .android])
2828
)
2929

30+
let strictConcurrencyDevelopment = false
31+
3032
let strictConcurrencySettings: [SwiftSetting] = {
3133
var initialSettings: [SwiftSetting] = []
3234
initialSettings.append(contentsOf: [
3335
.enableUpcomingFeature("StrictConcurrency"),
3436
.enableUpcomingFeature("InferSendableFromCaptures"),
3537
])
3638

37-
#if compiler(>=6.0)
38-
if ProcessInfo.processInfo.environment["CI"] != nil {
39+
if strictConcurrencyDevelopment {
3940
// -warnings-as-errors here is a workaround so that IDE-based development can
4041
// get tripped up on -require-explicit-sendable.
4142
initialSettings.append(.unsafeFlags(["-require-explicit-sendable", "-warnings-as-errors"]))
4243
}
43-
#endif
4444

4545
return initialSettings
4646
}()

0 commit comments

Comments
 (0)