From ec6d470985220df0f7215b86041b2c4a70c261c0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 9 Jan 2024 21:36:10 -0800 Subject: [PATCH] build: only build embedded lib when targeting macos specifically --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",