Skip to content

Commit 78d7c51

Browse files
committed
[linux] exclude dump-array support
1 parent f781644 commit 78d7c51

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tools/swift-inspect/Sources/swift-inspect/Operations/DumpArray.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) || os(Windows)
14+
1315
import ArgumentParser
1416
import SwiftRemoteMirror
1517

@@ -44,3 +46,5 @@ internal struct DumpArrays: ParsableCommand {
4446
}
4547
}
4648
}
49+
50+
#endif

tools/swift-inspect/Sources/swift-inspect/main.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,21 @@ internal struct SwiftInspect: ParsableCommand {
136136
DumpArrays.self,
137137
DumpConcurrency.self,
138138
]
139-
#else
139+
#elseif os(Windows)
140140
static let subcommands: [ParsableCommand.Type] = [
141141
DumpConformanceCache.self,
142142
DumpRawMetadata.self,
143143
DumpGenericMetadata.self,
144144
DumpCacheNodes.self,
145145
DumpArrays.self,
146146
]
147+
#else
148+
static let subcommands: [ParsableCommand.Type] = [
149+
DumpConformanceCache.self,
150+
DumpRawMetadata.self,
151+
DumpGenericMetadata.self,
152+
DumpCacheNodes.self,
153+
]
147154
#endif
148155

149156
static let configuration = CommandConfiguration(

0 commit comments

Comments
 (0)