Skip to content

Commit 65ca016

Browse files
committed
Insert missing '!SWT_NO_LEGACY_TEST_DISCOVERY' guard
1 parent e242d3e commit 65ca016

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/_TestDiscovery/SectionBounds.swift

+2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,10 @@ private func _sectionBounds(_ kind: SectionBounds.Kind) -> CollectionOfOne<Secti
368368
let range = switch kind {
369369
case .testContent:
370370
_testContentSectionBegin ..< _testContentSectionEnd
371+
#if !SWT_NO_LEGACY_TEST_DISCOVERY
371372
case .typeMetadata:
372373
_typeMetadataSectionBegin ..< _typeMetadataSectionEnd
374+
#endif
373375
}
374376
let buffer = UnsafeRawBufferPointer(start: range.lowerBound, count: range.count)
375377
let sb = SectionBounds(imageAddress: nil, buffer: buffer)

0 commit comments

Comments
 (0)