rpm-ostree/rust
Colin Walters ef587b5c5b build-sys: Turn Rust LTO off by default, add --enable-lto flag
For us, this is primarily right now a size issue.  See:
https://internals.rust-lang.org/t/rust-staticlibs-and-optimizing-for-size/5746

For more information, there are these two issues:
https://github.com/rust-lang/cargo/issues/4349
https://bugzilla.mozilla.org/show_bug.cgi?id=1386371

The basic issue here is that a build with LTO off (and a trivial
change to add a `println!` takes 14s here, and with it on takes 38s.
However, with LTO off the stripped size of `librpmostree_rust.a` is
`6M`, with LTO on it's `1.1M`.

I named this `--enable-lto` as I'd like to investigate doing this
for the C code too.

Closes: #1664
Approved by: jlebon
2018-11-05 18:41:09 +00:00
..
src Move varsubst code into Rust, use it in treefile parsing 2018-11-02 20:36:28 +00:00
.gitignore build-sys: Add some gitignore for Rust bits 2018-06-11 13:08:41 +00:00
cargo-vendor-config Add support for YAML treefiles 2018-06-05 13:08:33 +00:00
Cargo.toml build-sys: Turn Rust LTO off by default, add --enable-lto flag 2018-11-05 18:41:09 +00:00
cbindgen.toml Move varsubst code into Rust, use it in treefile parsing 2018-11-02 20:36:28 +00:00