From 951ab1b18bf43cafa8ef0b07892eeaf704551482 Mon Sep 17 00:00:00 2001 From: Pablo Alessandro Santos Hugen Date: Mon, 26 Jan 2026 22:34:52 -0300 Subject: [PATCH] std.Build.Step.Compile: pass target by pointer to isLibC*LibName --- lib/std/Build/Step/Compile.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 941f01dd75549436a497a52b554403d57e78d4b1..8c3bb5c568387cec06411adbb04f8cdd5dfb7e46 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -637,11 +637,11 @@ pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool { const target = compile.rootModuleTarget(); - if (std.zig.target.isLibCLibName(target, name)) { + if (std.zig.target.isLibCLibName(&target, name)) { return is_linking_libc; } - if (std.zig.target.isLibCxxLibName(target, name)) { + if (std.zig.target.isLibCxxLibName(&target, name)) { return is_linking_libcpp; } -- 2.54.0