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

This commit is contained in:
Linus Groh 2024-05-29 00:00:57 +02:00 committed by Andrew Kelley
parent 963ffe9d57
commit b5e99b5295

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;
}