Skip to content

Commit

Permalink
feat(build): add optdev profile for optimized debug builds (#3119)
Browse files Browse the repository at this point in the history
Added a new `optdev` profile in Cargo.toml inheriting from `release`. This profile disables LTO and sets codegen-units to 16 for faster, optimized debug builds.
  • Loading branch information
popcnt1 authored Dec 28, 2024
1 parent 2e242ca commit c067464
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,8 @@ codegen-units = 1 # Help to achieve a better result with lto
[profile.bench]
inherits = "release"
#debug = true

[profile.optdev]
inherits = "release"
lto = "off"
codegen-units = 16

0 comments on commit c067464

Please sign in to comment.