Commit 23fd15fd76

Andrew Kelley <andrew@ziglang.org>
2021-05-17 22:56:17
link/Elf: remove unintended link again libunwind
This was a merge conflict with master branch. The logic for linking libunwind is already handled above.
1 parent 8405d6f
Changed files (1)
src
link
src/link/Elf.zig
@@ -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));