# better awareness of unwind tables · gitcafe/zig

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

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

Visibility: public

Requested revision: b6277a4b1c2be27701d594bc1465ac72fc226260

Requested commit: b6277a4b1c2be27701d594bc1465ac72fc226260

Commit: b6277a4b1c2be27701d594bc1465ac72fc226260

Tree: 6a422059457c92c6baeaba53e6e95a2195cc0d43

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

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

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