Commit cccdc20 1 parent 03a289a commit cccdc20 Copy full SHA for cccdc20
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
DEVELOPER_DIR : /Applications/Xcode_15.0.app/Contents/Developer
11
+ SWIFT_STRICT_CONCURRENCY : complete
11
12
12
13
jobs :
13
14
swift :
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ let package = Package(
27
27
targets: [
28
28
. target(
29
29
name: " CombineUI " ,
30
- swiftSettings: [
31
- . unsafeFlags( [ " -strict-concurrency=complete " ] ) ,
32
- ] ,
30
+ swiftSettings: . swiftSettings,
33
31
plugins: [
34
32
. plugin( name: SwiftLint . plugin) ,
35
33
] ) ,
@@ -55,3 +53,12 @@ let package = Package(
55
53
checksum: " 963121d6babf2bf5fd66a21ac9297e86d855cbc9d28322790646b88dceca00f1 " ) ,
56
54
]
57
55
)
56
+
57
+ extension Array where Element == SwiftSetting {
58
+
59
+ static var swiftSettings : [ SwiftSetting ] {
60
+ guard let value: String = Context . environment [ " SWIFT_STRICT_CONCURRENCY " ]
61
+ else { return [ ] }
62
+ return [ . unsafeFlags( [ " -strict-concurrency= \( value) " ] ) ]
63
+ }
64
+ }
You can’t perform that action at this time.
0 commit comments