# fix libc\+\+ exceptions for musl targets · gitcafe/zig

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

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

Visibility: public

Requested revision: f9859c102d7d54ce109ee7afdbd59251c233e92c

Requested commit: f9859c102d7d54ce109ee7afdbd59251c233e92c

Commit: f9859c102d7d54ce109ee7afdbd59251c233e92c

Tree: ab95e7fad34068ab1e78a31d415db5a165c0018d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix libc++ exceptions for musl targets

This reverts commit d31be31267523cadd6d59b52633f2d4a9758a3b4.

The problem was happening due to an LLVM bug exposed by having LTO
enabled for libunwind. The simple workaround is to disable LTO for
libunwind. It can be re-enabled in the future when the upstream bug
is fixed.

See #12828

```

## Parents

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

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