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 88146ea704
commit 0039cb7ef2

View File

@ -591,7 +591,7 @@ pub fn dependsOnSystemLibrary(self: *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;
}