| ... | ... | @@ -499,6 +499,7 @@ pub const NativeTargetInfo = struct { |
| 499 | 499 | error.PipeBusy => unreachable, |
| 500 | 500 | error.FileLocksNotSupported => unreachable, |
| 501 | 501 | error.WouldBlock => unreachable, |
| 502 | error.NotCapable => unreachable, // we don't support WASI here (not yet at least) |
| 502 | 503 | |
| 503 | 504 | error.IsDir, |
| 504 | 505 | error.NotDir, |
| ... | ... | @@ -790,6 +791,7 @@ pub const NativeTargetInfo = struct { |
| 790 | 791 | var it = mem.tokenize(rpath_list, ":"); |
| 791 | 792 | while (it.next()) |rpath| { |
| 792 | 793 | var dir = fs.cwd().openDir(rpath, .{}) catch |err| switch (err) { |
| 794 | error.NotCapable => unreachable, // we don't support WASI here (not yet at least) |
| 793 | 795 | error.NameTooLong => unreachable, |
| 794 | 796 | error.InvalidUtf8 => unreachable, |
| 795 | 797 | error.BadPathName => unreachable, |
| ... | ... | @@ -817,6 +819,7 @@ pub const NativeTargetInfo = struct { |
| 817 | 819 | &link_buf, |
| 818 | 820 | ) catch |err| switch (err) { |
| 819 | 821 | error.NameTooLong => unreachable, |
| 822 | error.NotCapable => unreachable, // we don't support WASI here (not yet at least) |
| 820 | 823 | |
| 821 | 824 | error.AccessDenied, |
| 822 | 825 | error.FileNotFound, |
| ... | ... | @@ -851,6 +854,7 @@ pub const NativeTargetInfo = struct { |
| 851 | 854 | const len = file.pread(buf[i .. buf.len - i], offset + i) catch |err| switch (err) { |
| 852 | 855 | error.OperationAborted => unreachable, // Windows-only |
| 853 | 856 | error.WouldBlock => unreachable, // Did not request blocking mode |
| 857 | error.NotCapable => unreachable, // WASI only, and we don't support it here yet |
| 854 | 858 | error.SystemResources => return error.SystemResources, |
| 855 | 859 | error.IsDir => return error.UnableToReadElfFile, |
| 856 | 860 | error.BrokenPipe => return error.UnableToReadElfFile, |