diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-18 10:49:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-18 10:49:39 -0700 |
| commit | 75c8c4442d1dd6fe43fbef1bfeaded360a98fe51 (patch) | |
| tree | 53f006960b55e060f69b61ebeda1ffad015390d7 /src | |
| parent | 79a3dfcfd8c822096ed40fbe6f930d614a8dcb40 (diff) | |
| download | zig-75c8c4442d1dd6fe43fbef1bfeaded360a98fe51.tar.gz zig-75c8c4442d1dd6fe43fbef1bfeaded360a98fe51.zip | |
coff linking: honor the link_libunwind flag
Diffstat (limited to 'src')
| -rw-r--r-- | src/link/Coff.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index fd009ca9f8..a371efaa8a 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -1263,6 +1263,10 @@ fn linkWithLLD(self: *Coff, comp: *Compilation) !void { if (self.base.options.link_libcpp) { try argv.append(comp.libcxxabi_static_lib.?.full_object_path); try argv.append(comp.libcxx_static_lib.?.full_object_path); + } + + // libunwind dep + if (self.base.options.link_libunwind) { try argv.append(comp.libunwind_static_lib.?.full_object_path); } |
