Skip to content

Commit e1e544c

Browse files
authored
Enable MemberImportVisibility check on all targets (#1182)
1 parent 49a2702 commit e1e544c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,14 @@ var package = Package(
254254

255255
cxxLanguageStandard: .cxx11
256256
)
257+
258+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
259+
for target in package.targets {
260+
if target.type != .plugin {
261+
var settings = target.swiftSettings ?? []
262+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
263+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
264+
target.swiftSettings = settings
265+
}
266+
}
267+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)