| ... | @@ -29,8 +29,8 @@ pub const default_mode: ModeOverride = if (is_async) Mode.evented else .blocking | ... | @@ -29,8 +29,8 @@ pub const default_mode: ModeOverride = if (is_async) Mode.evented else .blocking |
| 29 | | 29 | |
| 30 | fn getStdOutHandle() os.fd_t { | 30 | fn getStdOutHandle() os.fd_t { |
| 31 | if (builtin.os.tag == .windows) { | 31 | if (builtin.os.tag == .windows) { |
| 32 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { | 32 | if (builtin.zig_backend == .stage2_aarch64) { |
| 33 | // TODO: this is just a temporary workaround until we advance x86 backend further along. | 33 | // TODO: this is just a temporary workaround until we advance aarch64 backend further along. |
| 34 | return os.windows.GetStdHandle(os.windows.STD_OUTPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; | 34 | return os.windows.GetStdHandle(os.windows.STD_OUTPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 35 | } | 35 | } |
| 36 | return os.windows.peb().ProcessParameters.hStdOutput; | 36 | return os.windows.peb().ProcessParameters.hStdOutput; |
| ... | @@ -55,8 +55,8 @@ pub fn getStdOut() File { | ... | @@ -55,8 +55,8 @@ pub fn getStdOut() File { |
| 55 | | 55 | |
| 56 | fn getStdErrHandle() os.fd_t { | 56 | fn getStdErrHandle() os.fd_t { |
| 57 | if (builtin.os.tag == .windows) { | 57 | if (builtin.os.tag == .windows) { |
| 58 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { | 58 | if (builtin.zig_backend == .stage2_aarch64) { |
| 59 | // TODO: this is just a temporary workaround until we advance x86 backend further along. | 59 | // TODO: this is just a temporary workaround until we advance aarch64 backend further along. |
| 60 | return os.windows.GetStdHandle(os.windows.STD_ERROR_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; | 60 | return os.windows.GetStdHandle(os.windows.STD_ERROR_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 61 | } | 61 | } |
| 62 | return os.windows.peb().ProcessParameters.hStdError; | 62 | return os.windows.peb().ProcessParameters.hStdError; |
| ... | @@ -81,8 +81,8 @@ pub fn getStdErr() File { | ... | @@ -81,8 +81,8 @@ pub fn getStdErr() File { |
| 81 | | 81 | |
| 82 | fn getStdInHandle() os.fd_t { | 82 | fn getStdInHandle() os.fd_t { |
| 83 | if (builtin.os.tag == .windows) { | 83 | if (builtin.os.tag == .windows) { |
| 84 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { | 84 | if (builtin.zig_backend == .stage2_aarch64) { |
| 85 | // TODO: this is just a temporary workaround until we advance x86 backend further along. | 85 | // TODO: this is just a temporary workaround until we advance aarch64 backend further along. |
| 86 | return os.windows.GetStdHandle(os.windows.STD_INPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; | 86 | return os.windows.GetStdHandle(os.windows.STD_INPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; |
| 87 | } | 87 | } |
| 88 | return os.windows.peb().ProcessParameters.hStdInput; | 88 | return os.windows.peb().ProcessParameters.hStdInput; |