# compiler: Rework LTO settings for some Zig-provided libraries\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 1e8b82f6b4852211b76a54da14fc8cf0351ada09

Requested commit: 1e8b82f6b4852211b76a54da14fc8cf0351ada09

Commit: 1e8b82f6b4852211b76a54da14fc8cf0351ada09

Tree: 1f5cd8e93a7f99d3010f4086e385dcfe0ac08e80

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: Rework LTO settings for some Zig-provided libraries.

* compiler-rt and mingw32 have both run into LLD bugs, and LLVM disables LTO for
  its compiler-rt, so disable LTO for these.
* While we haven't run into any bugs in it, LLVM disables LTO for its libtsan,
  so follow suit just to be safe.
* Allow LTO for libfuzzer as LLVM does.

```

## Parents

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

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