Commit 65f77878b4

Jacob Young <jacobly0@users.noreply.github.com>
2023-03-26 03:32:43
std: remove temporary workarounds for stage2_x86_64
These seem to work great now.
1 parent 14c0b8c
Changed files (1)
lib
std
lib/std/io.zig
@@ -29,8 +29,8 @@ 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 or builtin.zig_backend == .stage2_aarch64) {
-            // TODO: this is just a temporary workaround until we advance x86 backend further along.
+        if (builtin.zig_backend == .stage2_aarch64) {
+            // TODO: this is just a temporary workaround until we advance aarch64 backend further along.
             return os.windows.GetStdHandle(os.windows.STD_OUTPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE;
         }
         return os.windows.peb().ProcessParameters.hStdOutput;
@@ -55,8 +55,8 @@ pub fn getStdOut() File {
 
 fn getStdErrHandle() os.fd_t {
     if (builtin.os.tag == .windows) {
-        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.
+        if (builtin.zig_backend == .stage2_aarch64) {
+            // TODO: this is just a temporary workaround until we advance aarch64 backend further along.
             return os.windows.GetStdHandle(os.windows.STD_ERROR_HANDLE) catch os.windows.INVALID_HANDLE_VALUE;
         }
         return os.windows.peb().ProcessParameters.hStdError;
@@ -81,8 +81,8 @@ pub fn getStdErr() File {
 
 fn getStdInHandle() os.fd_t {
     if (builtin.os.tag == .windows) {
-        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.
+        if (builtin.zig_backend == .stage2_aarch64) {
+            // TODO: this is just a temporary workaround until we advance aarch64 backend further along.
             return os.windows.GetStdHandle(os.windows.STD_INPUT_HANDLE) catch os.windows.INVALID_HANDLE_VALUE;
         }
         return os.windows.peb().ProcessParameters.hStdInput;