Skip to content

Commit ee1c5d9

Browse files
committed
feat: build releases with lto=true
closes #8050
1 parent eb741e8 commit ee1c5d9

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)