fn lto_when_needs_object(crate_types: &[CrateType]) -> Lto
Lto setting to use when this unit needs object code.