From 7d8f701e99885c8d972f05311f9a7ac7a8dda180 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 27 May 2021 11:53:33 +0300 Subject: internal: disable debuginfo afterall --- xtask/src/dist.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 7ac9ae5b8..3a67294c5 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -67,7 +67,11 @@ 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", "thin"); - let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1"); + + // Uncomment to enable debug info for releases. Note that: + // * debug info is split on windows and macs, so it does nothing for those platforms, + // * on Linux, this blows up the binary size from 8MB to 43MB, which is unreasonable. + // let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1"); let target = get_target(); if target.contains("-linux-gnu") || target.contains("-linux-musl") { -- cgit v1.2.3