From 3859250c4d83d1611d256976e0845b16396a2e5c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 4 Jan 2026 21:48:37 -0800 Subject: [PATCH] std.Io.Threaded: only linux supports fileHardLink --- lib/std/Io/Threaded.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 784bcc177451fd75b411f8bdd370275eb4d78334..cbbf40c6e09e01d84f347a494872150f36d9c43e 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -5154,8 +5154,7 @@ fn fileHardLink( options: File.HardLinkOptions, ) File.HardLinkError!void { _ = userdata; - if (is_windows) return error.OperationUnsupported; - if (native_os == .wasi and !builtin.link_libc) @panic("TODO"); + if (native_os != .linux) return error.OperationUnsupported; var new_path_buffer: [posix.PATH_MAX]u8 = undefined; const new_sub_path_posix = try pathToPosix(new_sub_path, &new_path_buffer); -- 2.54.0