authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-23 20:03:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:36-07:00
log0aa613d9bfbc3904cbd62892bb4119f9104e7b67
treed602e261b720a522fe46a752a45b58b8e8bf1d11
parented492ff51c7867b04b3f2a1512df7642a5debe60

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


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

lib/compiler/Maker/Step/Run.zig+5-1
...@@ -1811,7 +1811,11 @@ fn runCommand(...@@ -1811,7 +1811,11 @@ fn runCommand(
1811 };1811 };
18121812
1813 const need_cross_libc = link_libc and root_target.os.tag == .linux and1813 const need_cross_libc = link_libc and root_target.os.tag == .linux and
1814 producer.flags2.linkage == .dynamic;1814 switch (producer.flags2.linkage) {
1815 .static => false,
1816 .dynamic => true,
1817 .default => root_target.isGnuLibC(),
1818 };
1815 switch (std.zig.system.getExternalExecutor(io, &root_target, .{1819 switch (std.zig.system.getExternalExecutor(io, &root_target, .{
1816 .host_cpu_arch = host.cpu.arch,1820 .host_cpu_arch = host.cpu.arch,
1817 .host_os_tag = host.os.tag,1821 .host_os_tag = host.os.tag,