diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-11-05 12:19:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-05 12:19:45 +0100 |
| commit | 28288dcbbf5258fe7461bbe0f6b2feeba0c2de5d (patch) | |
| tree | b2517ebf4369ffb2c078b4ceced49a3f83e33c4a /lib | |
| parent | 1d680459197e7ba5e163d99e07fdfe54c2ad9225 (diff) | |
| parent | 165ae04a03206af34707b5505dc042338ce4731e (diff) | |
| download | zig-28288dcbbf5258fe7461bbe0f6b2feeba0c2de5d.tar.gz zig-28288dcbbf5258fe7461bbe0f6b2feeba0c2de5d.zip | |
Merge pull request #13444 from ziglang/arm64-coff
aarch64,coff: lift-off!
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/io.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/io.zig b/lib/std/io.zig index d878afd3ae..b12ca80142 100644 --- a/lib/std/io.zig +++ b/lib/std/io.zig @@ -36,7 +36,7 @@ pub const default_mode: ModeOverride = if (is_async) Mode.evented else .blocking fn getStdOutHandle() os.fd_t { if (builtin.os.tag == .windows) { - if (builtin.zig_backend == .stage2_x86_64) { + if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { // TODO: this is just a temporary workaround until we advance x86 backend further along. return os.windows.GetStdHandle(os.windows.STD_OUTPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; } @@ -62,7 +62,7 @@ pub fn getStdOut() File { fn getStdErrHandle() os.fd_t { if (builtin.os.tag == .windows) { - if (builtin.zig_backend == .stage2_x86_64) { + if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { // TODO: this is just a temporary workaround until we advance x86 backend further along. return os.windows.GetStdHandle(os.windows.STD_ERROR_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; } @@ -88,7 +88,7 @@ pub fn getStdErr() File { fn getStdInHandle() os.fd_t { if (builtin.os.tag == .windows) { - if (builtin.zig_backend == .stage2_x86_64) { + if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_aarch64) { // TODO: this is just a temporary workaround until we advance x86 backend further along. return os.windows.GetStdHandle(os.windows.STD_INPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE; } |
