In particular, it doesn't include LTO flags when using Cargo's [profile.*] lto = "..." option.
This prevents us from correctly passing -flto=..., which affects Rust's bootstrap, and which I hit recently in rust-lang/rust#148925.
I'm unsure if this is something that Cargo is aware of, though see e.g. rust-lang/cargo#12437 for a similar issue. CC @weihanglo, how do you think Cargo would best expose to build scripts like cc-rs that it's doing LTO?