Skip to content

Commit

Permalink
Disable LTO for release builds
Browse files Browse the repository at this point in the history
It significantly increases the build time, while the profit is
neglectible.
  • Loading branch information
azat committed Mar 31, 2024
1 parent 2f78d17 commit cc3ace7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ path = "contrib/flameshow"
optional = true

[profile.release]
lto = true
# Too slow and does not worth it
lto = false

[lints.clippy]
needless_return = "allow"
Expand Down

0 comments on commit cc3ace7

Please sign in to comment.