Closed elichai closed 4 years ago
This is supported with the config profile feature:
CARGO_PROFILE_RELEASE_LTO=true cargo +nightly install ripgrep -Zconfig-profile
I'm going to close this in favor of issues like #6375 and https://github.com/rust-lang/rust/issues/48683.
For future searchers this is the easiest method I've found on stable: RUSTFLAGS=-Clto cargo install ripgrep --target x86_64-unknown-linux-gnu
Thanks: https://github.com/rust-lang/cargo/issues/6375#issuecomment-444900324
Hi, I want to use LTO when i'm installing crates but doing the naive
RUSTFLAGS=-Clto cargo install something
doesn't quite work, it seems to fail on proc-macrosExample: