feat(build): Remove debugging from release profile
Why did esp-generate even think this is a good idea to have full debugging in the release profile. That's what the debug build is for...
This commit is contained in:
parent
480ba97ee7
commit
5bce6e49c0
1 changed files with 6 additions and 3 deletions
|
|
@ -44,14 +44,17 @@ esp-radio = { version = "0.18.0", features = [
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
# The default debug profile is too slow and too big for resource-constrained devices.
|
# The default debug profile is too slow and too big for resource-constrained devices.
|
||||||
# Always build with some optimizations enabled.
|
# Always build with some optimizations enabled.
|
||||||
opt-level = "s"
|
lto = 'fat'
|
||||||
|
debug = 1 # only limited debug info to save some space
|
||||||
|
#debug = 'line-tables-only' # only basic debug info to save some space
|
||||||
|
opt-level = 's'
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||||
debug = 2 # prefer slower builds but better debugging experience
|
debug = 0 # disable debug information in release builds
|
||||||
lto = 'fat'
|
lto = 'fat'
|
||||||
opt-level = 's'
|
opt-level = 's'
|
||||||
strip = "debuginfo"
|
#strip = true # strip all symbols to save even more space
|
||||||
|
|
||||||
[profile.release-dbg]
|
[profile.release-dbg]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue