| ... | ... | @@ -36,6 +36,10 @@ pub const default_mode: ModeOverride = if (is_async) Mode.evented else .blocking |
| 36 | 36 | |
| 37 | 37 | fn getStdOutHandle() os.fd_t { |
| 38 | 38 | if (builtin.os.tag == .windows) { |
| 39 | if (builtin.zig_backend == .stage2_x86_64) { |
| 40 | // TODO: this is just a temporary workaround until we advance x86 backend further along. |
| 41 | return os.windows.GetStdHandle(os.windows.STD_OUTPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 42 | } |
| 39 | 43 | return os.windows.peb().ProcessParameters.hStdOutput; |
| 40 | 44 | } |
| 41 | 45 | |
| ... | ... | @@ -58,6 +62,10 @@ pub fn getStdOut() File { |
| 58 | 62 | |
| 59 | 63 | fn getStdErrHandle() os.fd_t { |
| 60 | 64 | if (builtin.os.tag == .windows) { |
| 65 | if (builtin.zig_backend == .stage2_x86_64) { |
| 66 | // TODO: this is just a temporary workaround until we advance x86 backend further along. |
| 67 | return os.windows.GetStdHandle(os.windows.STD_ERROR_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 68 | } |
| 61 | 69 | return os.windows.peb().ProcessParameters.hStdError; |
| 62 | 70 | } |
| 63 | 71 | |
| ... | ... | @@ -80,6 +88,10 @@ pub fn getStdErr() File { |
| 80 | 88 | |
| 81 | 89 | fn getStdInHandle() os.fd_t { |
| 82 | 90 | if (builtin.os.tag == .windows) { |
| 91 | if (builtin.zig_backend == .stage2_x86_64) { |
| 92 | // TODO: this is just a temporary workaround until we advance x86 backend further along. |
| 93 | return os.windows.GetStdHandle(os.windows.STD_INPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 94 | } |
| 83 | 95 | return os.windows.peb().ProcessParameters.hStdInput; |
| 84 | 96 | } |
| 85 | 97 | |