Adds support for running the trace tests through darling, fixes compilation errors in MachO due to interface change

This commit is contained in:
Mason Remaley
2026-04-09 17:27:12 -07:00
parent 492efd4c06
commit dcdb562c15
2 changed files with 33 additions and 12 deletions
+6
View File
@@ -2033,6 +2033,12 @@ fn nativeAndCompatible32bit(b: *std.Build, skip_non_native: bool) []const std.Bu
.os_tag = .windows,
})) catch @panic("OOM");
}
if (b.enable_darling and b.graph.host.result.os.tag != .macos) {
targets.append(b.graph.arena, b.resolveTargetQuery(.{
.cpu_arch = host.cpu.arch,
.os_tag = .macos,
})) catch @panic("OOM");
}
return targets.toOwnedSlice(b.graph.arena) catch @panic("OOM");
}