Skip to content

Commit 4949abd

Browse files
authored
TSCTestSupport: remove PseudoTerminal on Windows temporarily (#112)
While swift-package-manager is being brought up on Windows, we do not have the tests running. Windows does not have the `pty` concept nor the supporting APIs. For now disable the class to allow swift-tools-support-core to build on Windows with swift-package-manager which is required to bootstrap swift-package-manager.
1 parent a3e5bb8 commit 4949abd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/TSCTestSupport/PseudoTerminal.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import TSCBasic
1212
import TSCLibc
1313

14+
#if os(Windows)
15+
#else
1416
public final class PseudoTerminal {
1517
let master: Int32
1618
let slave: Int32
@@ -51,3 +53,4 @@ public final class PseudoTerminal {
5153
closeMaster()
5254
}
5355
}
56+
#endif

0 commit comments

Comments
 (0)