From 6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 24 Dec 2025 00:55:27 -0800 Subject: [PATCH] std.Io.Threaded: wasi does not support processExecutablePath --- lib/std/Io/Threaded.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 3662359b31..38b3950683 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -7142,6 +7142,7 @@ fn posixSeekTo(current_thread: *Thread, fd: posix.fd_t, offset: u64) File.SeekEr fn processExecutableOpen(userdata: ?*anyopaque, flags: File.OpenFlags) std.process.OpenExecutableError!File { const t: *Threaded = @ptrCast(@alignCast(userdata)); switch (native_os) { + .wasi => return error.OperationUnsupported, .linux, .serenity => return dirOpenFilePosix(t, .{ .handle = posix.AT.FDCWD }, "/proc/self/exe", flags), .windows => { // If ImagePathName is a symlink, then it will contain the path of the symlink,