commit 11db7eaf4efd0305c294a53c74e022e2231f67d3 (tree)
parent 55ee88f9c0cf2c03f05cce6cbb887dc60c8b418b
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 2 Apr 2025 23:41:43 +0200
std.zig.system: Fix a check in getExternalExecutor() to use the host argument.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig
@@ -156,7 +156,7 @@ pub fn getExternalExecutor(
// This check can be loosened once darling adds a QEMU-based emulation
// layer for non-host architectures:
// https://github.com/darlinghq/darling/issues/863
- if (candidate.cpu.arch != builtin.cpu.arch) {
+ if (candidate.cpu.arch != host.cpu.arch) {
return bad_result;
}
return Executor{ .darling = "darling" };