From f0a0367f69c6f246d7f0df2930ab80fb1472a5f8 Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Wed, 10 Jan 2024 01:55:08 +0330 Subject: [PATCH] update to latest build API --- build.zig | 2 +- build.zig.zon | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 4f2f91077..7bf31c193 100644 --- a/build.zig +++ b/build.zig @@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { lib.defineCMacro("HAVE_UNISTD_H", "1"); lib.addCSourceFiles(.{ .files = &sources, .flags = &.{} }); - if (target.toTarget().os.tag == .macos) lib.addCSourceFile(.{ + if (target.result.os.tag == .macos) lib.addCSourceFile(.{ .file = .{ .path = "src/base/ftmac.c" }, .flags = &.{}, }); diff --git a/build.zig.zon b/build.zig.zon index 4114425f2..a29eedc15 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -13,8 +13,8 @@ }, .dependencies = .{ .brotli = .{ - .url = "https://pkg.machengine.org/brotli/13f8e428c00cc28b051f5c05e528b0ab65b0c834.tar.gz", - .hash = "1220682fcfe1caaa9160a6e6243821c21f0c080e4150c9e100f81e969a407a34d432", + .url = "https://pkg.machengine.org/brotli/62ab0d6a477ba89cbca5c690369bfe37cf56ff79.tar.gz", + .hash = "1220029950e0c3d0828f39aae7e7b9cda366cc5d2d23df625587307f4b5c18fd1307", }, }, }