Skip to content

Commit

Permalink
Add release-with-debug profile
Browse files Browse the repository at this point in the history
Enables debug symbols and disables stripping
  • Loading branch information
argerus committed Sep 27, 2024
1 parent 248d2a3 commit b43e65e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ opt-level = "s"
codegen-units = 1
incremental = false
strip = true
# debug = true # for profiling (turn off otherwise)
# split-debuginfo = "packed" # only enable when `debug = true``

[profile.release-with-debug]
inherits = "release"
strip = false # do not strip debug symbols
debug = true # enable debug symbols

0 comments on commit b43e65e

Please sign in to comment.