From a1087af7c8de83630a67da5d6efa522b9e445a77 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 14 Oct 2022 09:56:53 -0700 Subject: [PATCH] Workaround stage2 compile issue with issue link --- src/Window.zig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index 5053e7457..11c8ec9e4 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -381,7 +381,15 @@ pub fn create(alloc: Allocator, loop: libuv.Loop, config: *const Config) !*Windo try window.setSizeLimits(.{ .width = @floatToInt(u32, grid.cell_size.width * 10), .height = @floatToInt(u32, grid.cell_size.height * 4), - }, .{ .width = null, .height = null }); + }, switch (builtin.zig_backend) { + .stage1 => .{ .width = null, .height = null }, + + // https://github.com/hexops/mach/issues/581 + else => .{ + .width = 100000, + .height = 100000, + }, + }); // Create our pty var pty = try Pty.open(.{