all: update to use latest Zig master APIs (#521)

Co-authored-by: Scott Johnson <scott.johnson@furniturerow.com>
This commit is contained in:
NewbLuck 2022-09-09 20:07:30 -06:00 committed by GitHub
parent 0e71daf504
commit 46c4ea4ebd
Failed to generate hash of commit
4 changed files with 5 additions and 5 deletions

View file

@ -142,7 +142,7 @@ pub fn buildFreetype(b: *Builder, mode: std.builtin.Mode, target: std.zig.CrossT
if (options.brotli)
lib.defineCMacro("FT_REQUIRE_BROTLI", "1");
const target_info = (std.zig.system.NativeTargetInfo.detect(b.allocator, target) catch unreachable).target;
const target_info = (std.zig.system.NativeTargetInfo.detect(target) catch unreachable).target;
if (target_info.os.tag == .windows) {
lib.addCSourceFile(ft_root ++ "/builds/windows/ftsystem.c", &.{});