Skip to content

Commit 6fa58d1

Browse files
committed
Enable MemberImportVisibility check on all targets
1 parent 4534a63 commit 6fa58d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Package.swift

+11
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,14 @@ var package = Package(
154154

155155
cxxLanguageStandard: .cxx11
156156
)
157+
158+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
159+
for target in package.targets {
160+
if target.type != .plugin {
161+
var settings = target.swiftSettings ?? []
162+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
163+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
164+
target.swiftSettings = settings
165+
}
166+
}
167+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)