gpu-dawn: improve ABI build checks
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
cfa3674db2
commit
a3cb937966
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue