std.Build.step.Compile: Fix lib{c,cpp} mixup in dependsOnSystemLibrary()

This commit is contained in:
Linus Groh authored and Andrew Kelley committed 2024-05-28 20:39:42 -04:00
1 parent 963ffe9d57
commit b5e99b5295
1 file changed
+1 -1
+1 -1
View File
@@ -583,7 +583,7 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {
else => continue,
}
}
is_linking_libc = is_linking_libc or module.link_libcpp == true;
is_linking_libc = is_linking_libc or module.link_libc == true;
is_linking_libcpp = is_linking_libcpp or module.link_libcpp == true;
}