link/Elf: remove unintended link again libunwind

This was a merge conflict with master branch. The logic for linking
libunwind is already handled above.
This commit is contained in:
Andrew Kelley 2021-05-17 13:56:17 -07:00
parent 8405d6f7e2
commit 23fd15fd76

View File

@ -1653,9 +1653,6 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void {
// libc dep
if (self.base.options.link_libc) {
if (self.base.options.libc_installation != null) {
if (target_util.libcNeedsLibUnwind(target)) {
try argv.append(comp.libunwind_static_lib.?.full_object_path);
}
const needs_grouping = self.base.options.link_mode == .Static;
if (needs_grouping) try argv.append("--start-group");
try argv.appendSlice(target_util.libcFullLinkFlags(target));