# stage2: \-lunwind is handled specially · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/826179bff40fdbd8c3b11138897fcfbb3367def8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 826179bff40fdbd8c3b11138897fcfbb3367def8

Requested commit: 826179bff40fdbd8c3b11138897fcfbb3367def8

Commit: 826179bff40fdbd8c3b11138897fcfbb3367def8

Tree: 23fcdea829179045785ac4303a3e694cc7e12170

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [76a259799d5bac3effabd1df44c0dec9e4fa16d4](https://git.cafe/gitcafe/zig/commit/76a259799d5bac3effabd1df44c0dec9e4fa16d4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/826179bff40fdbd8c3b11138897fcfbb3367def8?format=markdown)
