Skip to content

Commit 4f5bd82

Browse files
authored
Enable MemberImportVisibility check on all targets (#497)
Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts.
1 parent e252d9b commit 4f5bd82

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,14 @@ let package = Package(
144144
],
145145
cxxLanguageStandard: .cxx14
146146
)
147+
148+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
149+
for target in package.targets {
150+
if target.type != .plugin {
151+
var settings = target.swiftSettings ?? []
152+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
153+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
154+
target.swiftSettings = settings
155+
}
156+
}
157+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

Sources/NIOSSL/IdentityVerification.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import CNIOLinux
1516
import NIOCore
1617

1718
#if canImport(Darwin)

0 commit comments

Comments
 (0)