@@ -19,8 +19,7 @@ import PackageDescription
19
19
let swiftSettings : [ SwiftSetting ] = [
20
20
// https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
21
21
// Require `any` for existential types.
22
- . enableUpcomingFeature( " ExistentialAny " ) ,
23
- . enableExperimentalFeature( " StrictConcurrency=complete " ) ,
22
+ . enableUpcomingFeature( " ExistentialAny " ) , . enableExperimentalFeature( " StrictConcurrency=complete " ) ,
24
23
]
25
24
26
25
let package = Package (
@@ -54,11 +53,13 @@ let package = Package(
54
53
55
54
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
56
55
for target in package . targets {
57
- if target. type != . plugin {
56
+ switch target. type {
57
+ case . regular, . test, . executable:
58
58
var settings = target. swiftSettings ?? [ ]
59
59
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
60
60
settings. append ( . enableUpcomingFeature( " MemberImportVisibility " ) )
61
61
target. swiftSettings = settings
62
+ case . macro, . plugin, . system, . binary: ( ) // not applicable
63
+ @unknown default : ( ) // we don't know what to do here, do nothing
62
64
}
63
- }
64
- // --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
65
+ } // --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
0 commit comments