diff options
Diffstat (limited to 'src/libc_installation.zig')
| -rw-r--r-- | src/libc_installation.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libc_installation.zig b/src/libc_installation.zig index 4cd43c7567..fe1a2b2ca5 100644 --- a/src/libc_installation.zig +++ b/src/libc_installation.zig @@ -216,7 +216,7 @@ pub const LibCInstallation = struct { self.crt_dir = try args.allocator.dupeZ(u8, "/system/develop/lib"); break :blk batch.wait(); }; - } else { + } else if (std.process.can_spawn) { try blk: { var batch = Batch(FindError!void, 2, .auto_async).init(); errdefer batch.wait() catch {}; @@ -229,6 +229,8 @@ pub const LibCInstallation = struct { } break :blk batch.wait(); }; + } else { + return error.LibCRuntimeNotFound; } return self; } |
