diff --git a/gpu-dawn/build.zig b/gpu-dawn/build.zig index e38053f1..fd25cf41 100644 --- a/gpu-dawn/build.zig +++ b/gpu-dawn/build.zig @@ -191,10 +191,10 @@ pub fn linkFromBinary(b: *Builder, step: *std.build.LibExeObjStep, options: Opti const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target; const binaries_available = switch (target.os.tag) { .windows => false, // TODO(build-system): add Windows binaries - .linux => target.cpu.arch.isX86() and (target.abi.isGnu() or target.abi == .musl), + .linux => target.cpu.arch.isX86() and (target.abi.isGnu() or target.abi.isMusl()), .macos => blk: { if (!target.cpu.arch.isX86() and !target.cpu.arch.isAARCH64()) break :blk false; - if (target.abi != .gnu) break :blk false; + if (!target.abi.isGnu()) break :blk false; // If min. target macOS version is lesser than the min version we have available, then // our binary is incompatible with the target.