feat: Preserve full debug infos in release builds
The `Cargo.toml` file already says: ```toml [profile.release] debug = true ``` but we were overriding it in the circleci release script to include only line number info, probably to shave off some time from the total build time. The ability to debug a production binary outweighs the few seconds or even a minute overhead it takes to add the debug infos. If building with full debug infos take much much longer, next time we disable them it would be nice to include such a dramatic fact in the comments next to where we disable debug infos :-)pull/24376/head
parent
eaa5b75437
commit
c77e57b7dc
|
@ -212,9 +212,7 @@ jobs:
|
|||
environment:
|
||||
# Disable incremental compilation to avoid overhead. We are not preserving these files anyway.
|
||||
CARGO_INCREMENTAL: "0"
|
||||
# Disable full debug symbol generation to speed up CI build
|
||||
# "1" means line tables only, which is useful for panic tracebacks.
|
||||
RUSTFLAGS: "-C debuginfo=1"
|
||||
# We keep the debug symbols (Enabled in Cargo.toml as debug = true)
|
||||
steps:
|
||||
- checkout
|
||||
- rust_components
|
||||
|
|
Loading…
Reference in New Issue