Skip to content

Commit 803f9b9

Browse files
authored
Merge pull request #106 from compnerd/signals
TSCBasic: remove `signalled` from `ProcessResult` on Windows
2 parents 1b1132c + a5cdc16 commit 803f9b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/TSCBasic/Process.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ public struct ProcessResult: CustomStringConvertible {
3131
public enum ExitStatus: Equatable {
3232
/// The process was terminated normally with a exit code.
3333
case terminated(code: Int32)
34-
34+
#if !os(Windows)
3535
/// The process was terminated due to a signal.
3636
case signalled(signal: Int32)
37+
#endif
3738
}
3839

3940
/// The arguments with which the process was launched.
@@ -758,9 +759,10 @@ extension ProcessResult.Error: CustomStringConvertible {
758759
switch result.exitStatus {
759760
case .terminated(let code):
760761
stream <<< "terminated(\(code)): "
761-
762+
#if !os(Windows)
762763
case .signalled(let signal):
763764
stream <<< "signalled(\(signal)): "
765+
#endif
764766
}
765767

766768
// Strip sandbox information from arguments to keep things pretty.

0 commit comments

Comments
 (0)