Skip to content

Commit 0125c44

Browse files
committed
Only import SwiftShims if we're going to use MetadataSections
1 parent d19a98d commit 0125c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Testing/Discovery+Platform.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//
1010

1111
internal import _TestingInternals
12-
private import SwiftShims
1312

1413
/// A structure describing the bounds of a Swift metadata section.
1514
struct SectionBounds: Sendable {
@@ -89,6 +88,8 @@ private func _testContentSectionBounds() -> [SectionBounds] {
8988
#elseif os(Linux) || os(FreeBSD) || os(Android)
9089
// MARK: - ELF implementation
9190

91+
private import SwiftShims // For MetadataSections
92+
9293
/// The ELF-specific implementation of ``SectionBounds/all``.
9394
///
9495
/// - Returns: An array of structures describing the bounds of all known test

0 commit comments

Comments
 (0)