From ee1c5d9d193eecba056a3f6185055146cff17c5d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 3 May 2021 16:55:30 +0300 Subject: feat: build releases with lto=true closes #8050 --- xtask/src/dist.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'xtask/src/dist.rs') diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 12a7fea1e..b6aa2f52a 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -66,6 +66,7 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> { fn dist_server(release_channel: &str) -> Result<()> { let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel); + let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "true"); let target = get_target(); if target.contains("-linux-gnu") || target.contains("-linux-musl") { env::set_var("CC", "clang"); -- cgit v1.2.3