authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-02 23:41:43+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-02 23:58:54+02:00
log11db7eaf4efd0305c294a53c74e022e2231f67d3
treef5de781706f226dd0059a4f92f3963fc74a3bec9
parent55ee88f9c0cf2c03f05cce6cbb887dc60c8b418b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.system: Fix a check in getExternalExecutor() to use the host argument.


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/zig/system.zig+1-1
......@@ -156,7 +156,7 @@ pub fn getExternalExecutor(
156156 // This check can be loosened once darling adds a QEMU-based emulation
157157 // layer for non-host architectures:
158158 // https://github.com/darlinghq/darling/issues/863
159 if (candidate.cpu.arch != builtin.cpu.arch) {
159 if (candidate.cpu.arch != host.cpu.arch) {
160160 return bad_result;
161161 }
162162 return Executor{ .darling = "darling" };