cargo
cargo copied to clipboard
Add a warning when enabling LTO for crates with both cargo-types that support LTO and ones that don't.
As discussed in #2301, cargo silently builds a cdylib without LTO when the same crate also has rlib outputs, as rustc would otherwise error.
The only sign this has happened currently is the output binaries being way larger than expected. A warning would be very helpful for this.