diff options
author | Aleksey Kladov <[email protected]> | 2021-05-03 14:55:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-03 14:56:44 +0100 |
commit | ee1c5d9d193eecba056a3f6185055146cff17c5d (patch) | |
tree | 22770423d2517a904f7be1c9fcf19dce2659cc64 /xtask | |
parent | eb741e895f1a73420a401f2495c711afe37d9d19 (diff) |
feat: build releases with lto=true
closes #8050
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/dist.rs | 1 |
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 | ||
67 | fn dist_server(release_channel: &str) -> Result<()> { | 67 | fn 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"); |