Skip to content

Commit 555d6c6

Browse files
committed
Only apply standard swift settings on valid targets
1 parent d9fbc21 commit 555d6c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Package.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ package.dependencies += [.package(url: "https://github.com/apple/swift-nio", fro
6161

6262
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
6363
for target in package.targets {
64-
if target.type != .plugin {
64+
switch target.type {
65+
case .regular, .test, .executable:
6566
var settings = target.swiftSettings ?? []
6667
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
6768
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
6869
target.swiftSettings = settings
70+
case .macro, .plugin, .system, .binary: () // not applicable
71+
@unknown default: () // we don't know what to do here, do nothing
6972
}
70-
}
71-
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
73+
}// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)