# compiler: fix LTO availability logic · gitcafe/zig

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

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

Visibility: public

Requested revision: ec21da0d51afa9b688ed99425b307e23a9c57a07

Requested commit: ec21da0d51afa9b688ed99425b307e23a9c57a07

Commit: ec21da0d51afa9b688ed99425b307e23a9c57a07

Tree: c4550372d33a445e2da6ff9eebab0a955e56eea9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compiler: fix LTO availability logic

Before this commit, the logic would fail with a "LTO not available"
error if the user set `-fno-lto` which doesn't make sense. This commit
corrects the logic to understand when the user is explicitly requesting
to turn LTO off.

```

## Parents

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

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