authorgravatar for phugen@redhat.comPablo Alessandro Santos Hugen <phugen@redhat.com> 2026-01-26 22:34:52-03:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-27 05:29:04+01:00
log951ab1b18bf43cafa8ef0b07892eeaf704551482
treefe13a1f9f50a5404eb617e90bb22b6869ad44d64
parent519f1eb3613a95343d4401f0b3643636b1ee721e

std.Build.Step.Compile: pass target by pointer to isLibC*LibName


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

lib/std/Build/Step/Compile.zig+2-2
......@@ -637,11 +637,11 @@ pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool {
637637
638638 const target = compile.rootModuleTarget();
639639
640 if (std.zig.target.isLibCLibName(target, name)) {
640 if (std.zig.target.isLibCLibName(&target, name)) {
641641 return is_linking_libc;
642642 }
643643
644 if (std.zig.target.isLibCxxLibName(target, name)) {
644 if (std.zig.target.isLibCxxLibName(&target, name)) {
645645 return is_linking_libcpp;
646646 }
647647