commit 951ab1b18bf43cafa8ef0b07892eeaf704551482 (tree)
parent 519f1eb3613a95343d4401f0b3643636b1ee721e
Author: Pablo Alessandro Santos Hugen <phugen@redhat.com>
Date: Mon, 26 Jan 2026 22:34:52 -0300
std.Build.Step.Compile: pass target by pointer to isLibC*LibName
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;
}