diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-13 15:59:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-13 22:42:57 -0400 |
| commit | 826179bff40fdbd8c3b11138897fcfbb3367def8 (patch) | |
| tree | 23fcdea829179045785ac4303a3e694cc7e12170 /src/link.zig | |
| parent | 76a259799d5bac3effabd1df44c0dec9e4fa16d4 (diff) | |
| download | zig-826179bff40fdbd8c3b11138897fcfbb3367def8.tar.gz zig-826179bff40fdbd8c3b11138897fcfbb3367def8.zip | |
stage2: -lunwind is handled specially
* `-lc++` now implies `-lc`.
* `-lunwind` is now pulled out into a separate `link_libunwind` flag in
the frontend driver code. This allows a project to request zig to
provide libunwind even if the default situation that causes it to be
implicitly added, is not active.
* build.zig: ask for -lunwind when building the self-hosted compiler on
Linux. Otherwise we get linker errors with unresolved symbols to
libunwind.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index c0f9a50b2b..b30db06148 100644 --- a/src/link.zig +++ b/src/link.zig @@ -63,6 +63,7 @@ pub const Options = struct { system_linker_hack: bool, link_libc: bool, link_libcpp: bool, + link_libunwind: bool, function_sections: bool, eh_frame_hdr: bool, emit_relocs: bool, |
