Cargo: Support building with LTO

Created on 26 Oct 2014  路  2Comments  路  Source: rust-lang/cargo

One possibility would be cargo build --lto as a level beyond cargo build --release. Presumably this should only work with binaries/static libraries and so be an error if applied to an rlib.

E-easy

Most helpful comment

I think I may actually expect lto = true to be possible in the [profile.release] manifest section as opposed to adding a flag to this.

All 2 comments

I think I may actually expect lto = true to be possible in the [profile.release] manifest section as opposed to adding a flag to this.

One may not want to build with LTO for every release since it takes so long, but maybe this isn't the case.

Was this page helpful?
0 / 5 - 0 ratings