File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,14 @@ let package = Package(
150
150
151
151
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
152
152
for target in package . targets {
153
- if target. type != . plugin {
153
+ switch target. type {
154
+ case . regular, . test, . executable:
154
155
var settings = target. swiftSettings ?? [ ]
155
156
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
156
157
settings. append ( . enableUpcomingFeature( " MemberImportVisibility " ) )
157
158
target. swiftSettings = settings
159
+ case . macro, . plugin, . system, . binary: ( ) // not applicable
160
+ @unknown default : ( ) // we don't know what to do here, do nothing
158
161
}
159
162
}
160
163
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
You can’t perform that action at this time.
0 commit comments