diff --git a/build.zig b/build.zig index 9d3fc1641..f0093f693 100644 --- a/build.zig +++ b/build.zig @@ -444,8 +444,8 @@ pub fn build(b: *std.Build) !void { b.installFile("images/icons/icon_256x256@2x@2x.png", "share/icons/hicolor/256x256@2/apps/com.mitchellh.ghostty.png"); } - // On Mac we can build the embedding library. - if (builtin.target.isDarwin() and target.result.isDarwin()) { + // On Mac we can build the embedding library. This only handles the macOS lib. + if (builtin.target.isDarwin() and target.result.os.tag == .macos) { const static_lib_aarch64 = lib: { const lib = b.addStaticLibrary(.{ .name = "ghostty",