commit 6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1 (tree)
parent ace08ba642361d57268b1f102c371b060a1f9a2c
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 24 Dec 2025 00:55:27 -0800
std.Io.Threaded: wasi does not support processExecutablePath
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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,