Maker.Step.Run: fix passing -L to qemu

This commit is contained in:
Andrew Kelley
2026-05-23 20:03:32 -07:00
parent ed492ff51c
commit 0aa613d9bf
+5 -1
View File
@@ -1811,7 +1811,11 @@ fn runCommand(
};
const need_cross_libc = link_libc and root_target.os.tag == .linux and
producer.flags2.linkage == .dynamic;
switch (producer.flags2.linkage) {
.static => false,
.dynamic => true,
.default => root_target.isGnuLibC(),
};
switch (std.zig.system.getExternalExecutor(io, &root_target, .{
.host_cpu_arch = host.cpu.arch,
.host_os_tag = host.os.tag,