build: only build embedded lib when targeting macos specifically

This commit is contained in:
Mitchell Hashimoto
2024-01-09 21:36:10 -08:00
parent fc30fdfb2b
commit ec6d470985

View File

@ -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",