4 ms·
Whether a build is debug or release is independent of whether it contains debug symbols. Both `cargo build` and `cargo build --release` produce builds with debu
by umanwizard 7y ago
Whether a build is debug or release is independent of whether it contains debug symbols. Both `cargo build` and `cargo build --release` produce builds with debug symbols.
- saagarjha 7y agoDon't you need to add [profile.release] debug = true to make this work?
- umanwizard 7y agoOh, you may be right. My company's main codebase does indeed have that; I had assumed it was the default.
- Freaky 7y agoI think you still get symbols for libstd without that. I can see why that would lead to confusion - stripping a plain --release build still saves a few MB.
- steveklabnik 7y agoIIRC this is correct, libstd is built in release mode but with debuginfo.