Skip to content

Commit bfb06e1

Browse files
bors[bot]matklad
andauthored
Merge #9022
9022: internal: disable debuginfo afterall r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents a9a978e + 7d8f701 commit bfb06e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xtask/src/dist.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> {
6767
fn dist_server(release_channel: &str) -> Result<()> {
6868
let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel);
6969
let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "thin");
70-
let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1");
70+
71+
// Uncomment to enable debug info for releases. Note that:
72+
// * debug info is split on windows and macs, so it does nothing for those platforms,
73+
// * on Linux, this blows up the binary size from 8MB to 43MB, which is unreasonable.
74+
// let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1");
7175

7276
let target = get_target();
7377
if target.contains("-linux-gnu") || target.contains("-linux-musl") {

0 commit comments

Comments
 (0)