Skip to content

Commit

Permalink
ci: Turn off LTO, document the settings in the ci Cargo profile
Browse files Browse the repository at this point in the history
And set the number of codegen units.
  • Loading branch information
torokati44 committed Feb 27, 2024
1 parent a23ebb0 commit 05fc77e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ inherits = "release"

[profile.ci]
inherits = "release"
opt-level = 2
debug-assertions = true
overflow-checks = true
# "Not too slow to compile, fast enough to run."
opt-level = 2
# Takes too long, especially on Windows, with marginal benefit otherwise.
lto = "off"
# This is also set with higher authority in `test_rust.yml`.
incremental = true
# Right between the defaults of 16 and 256, for crate fragment caching.
codegen-units = 64

0 comments on commit 05fc77e

Please sign in to comment.