Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d7817f

Browse files
authored
Add "-Xfrontend" to strict concurrency settings (#203)
Add "-Xfrontend" to strict concurrency settings `-require-explicit-sendable` flag, it doesn't seem to work consistently without it.
1 parent cb35b93 commit 1d7817f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let strictConcurrencySettings: [SwiftSetting] = {
2727
if strictConcurrencyDevelopment {
2828
// -warnings-as-errors here is a workaround so that IDE-based development can
2929
// get tripped up on -require-explicit-sendable.
30-
initialSettings.append(.unsafeFlags(["-require-explicit-sendable", "-warnings-as-errors"]))
30+
initialSettings.append(.unsafeFlags(["-Xfrontend", "-require-explicit-sendable", "-warnings-as-errors"]))
3131
}
3232

3333
return initialSettings

0 commit comments

Comments
 (0)