zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 0aa613d9bfbc3904cbd62892bb4119f9104e7b67 (tree)
parent ed492ff51c7867b04b3f2a1512df7642a5debe60
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sat, 23 May 2026 20:03:32 -0700

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

Diffstat:
Mlib/compiler/Maker/Step/Run.zig | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/compiler/Maker/Step/Run.zig b/lib/compiler/Maker/Step/Run.zig @@ -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,