Skip to content

Commit 544a93e

Browse files
bors[bot]matklad
andauthored
Merge #8710
8710: feat: build releases with lto=true r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 242fa3c + ee1c5d9 commit 544a93e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xtask/src/dist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> {
6666

6767
fn dist_server(release_channel: &str) -> Result<()> {
6868
let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel);
69+
let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "true");
6970
let target = get_target();
7071
if target.contains("-linux-gnu") || target.contains("-linux-musl") {
7172
env::set_var("CC", "clang");

0 commit comments

Comments
 (0)