Skip to content

Commit

Permalink
Turn off LTO for dev and test builds.
Browse files Browse the repository at this point in the history
This results in a penalty to full compilation time,
but a dramatic speedup to partial recompilation time.
  • Loading branch information
mikebenfield committed Oct 12, 2024
1 parent a55dfe2 commit 510e829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ debug-assertions = false

[profile.dev]
opt-level = 2
lto = "thin"
lto = "off"
incremental = true

[profile.test]
opt-level = 2
lto = "thin"
lto = "off"
incremental = true
debug = true
debug-assertions = true

0 comments on commit 510e829

Please sign in to comment.