aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/dist.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-05-03 14:55:30 +0100
committerAleksey Kladov <[email protected]>2021-05-03 14:56:44 +0100
commitee1c5d9d193eecba056a3f6185055146cff17c5d (patch)
tree22770423d2517a904f7be1c9fcf19dce2659cc64 /xtask/src/dist.rs
parenteb741e895f1a73420a401f2495c711afe37d9d19 (diff)
feat: build releases with lto=true
closes #8050
Diffstat (limited to 'xtask/src/dist.rs')
-rw-r--r--xtask/src/dist.rs1
1 files changed, 1 insertions, 0 deletions
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<()> {
66 66
67fn dist_server(release_channel: &str) -> Result<()> { 67fn dist_server(release_channel: &str) -> Result<()> {
68 let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel); 68 let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel);
69 let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "true");
69 let target = get_target(); 70 let target = get_target();
70 if target.contains("-linux-gnu") || target.contains("-linux-musl") { 71 if target.contains("-linux-gnu") || target.contains("-linux-musl") {
71 env::set_var("CC", "clang"); 72 env::set_var("CC", "clang");