0
0
Fork 0

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:
Jannik Beyerstedt 2026-04-27 14:11:18 +02:00
commit 5bce6e49c0

View file

@ -44,14 +44,17 @@ esp-radio = { version = "0.18.0", features = [
[profile.dev]
# The default debug profile is too slow and too big for resource-constrained devices.
# 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]
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'
opt-level = 's'
strip = "debuginfo"
#strip = true # strip all symbols to save even more space
[profile.release-dbg]
inherits = "release"