# better awareness of unwind tables · gitcafe/zig

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

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

Visibility: public

Requested revision: 264969a8c3f84212a71fc43f9239b0dc7684994c

Requested commit: 264969a8c3f84212a71fc43f9239b0dc7684994c

Commit: 264969a8c3f84212a71fc43f9239b0dc7684994c

Tree: 7348dc01f191bae3b331519986ea51f23c197212

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
better awareness of unwind tables

 * stage1 backend allows configuring the uwtables function attr
   via a flag rather than its own logic.
 * stage2 defaults to enabling uwtable attr when
   linking libunwind, or always on windows
 * stage2 makes link_eh_frame_hdr true automatically if uwtable
   attr is set to be on for zig functions
 * CLI: add -funwind-tables and -fno-unwind-tables to allow the user to
   override the defaults.
 * hook it up to `zig cc`

closes #9046

```

## Parents

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

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