feat: build releases with lto=true

closes #8050
This commit is contained in:
Aleksey Kladov 2021-05-03 16:55:30 +03:00
parent eb741e895f
commit ee1c5d9d19

View File

@ -66,6 +66,7 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> {
fn dist_server(release_channel: &str) -> Result<()> { fn dist_server(release_channel: &str) -> Result<()> {
let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel); let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel);
let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "true");
let target = get_target(); let target = get_target();
if target.contains("-linux-gnu") || target.contains("-linux-musl") { if target.contains("-linux-gnu") || target.contains("-linux-musl") {
env::set_var("CC", "clang"); env::set_var("CC", "clang");