diff options
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exec.zig b/src/exec.zig index 8f84d2c6..df397b37 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -483,6 +483,8 @@ pub fn isFile(path: []const u8) bool { /// What `path` is on this host, null when it is not there; the turn out /// while it asks (it may be inside a mount this editor serves). pub fn kindOf(path: []const u8) ?std.Io.File.Kind { + // A freestanding build has no host to ask. + if (comptime !pardes.hosted) return null; var buf: [4096]u8 = undefined; const z = std.fmt.bufPrintSentinel(&buf, "{s}", .{path}, 0) catch return null; return pardes.tape.site(.kind, null, kindHost, .{z}); |
