Skip to content

Commit c5d30e2

Browse files
Merge pull request rust-lang#22502 from lnicola/less-debug
Revert "Merge pull request rust-lang#22492 from Veykril/push-onsxmumorqlz"
2 parents ffc4bd5 + dcab83c commit c5d30e2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

xtask/src/dist.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,16 @@ fn dist_server(
106106
dev_rel: bool,
107107
) -> anyhow::Result<()> {
108108
let _e = sh.push_env("CFG_RELEASE", release);
109-
let _e = sh.push_env("CARGO_PROFILE_RELEASE_DEBUG", "limited");
110109
let _e = sh.push_env("CARGO_PROFILE_RELEASE_LTO", "thin");
111110
let _e = sh.push_env("CARGO_PROFILE_RELEASE_CODEGEN_UNITS", "1");
112-
let _e = sh.push_env("CARGO_PROFILE_DEV_REL_DEBUG", "limited");
113111
let _e = sh.push_env("CARGO_PROFILE_DEV_REL_LTO", "thin");
114112
let _e = sh.push_env("CARGO_PROFILE_DEV_REL_CODEGEN_UNITS", "1");
115113

114+
// Uncomment to enable debug info for releases. Note that:
115+
// * debug info is split on windows and macs, so it does nothing for those platforms,
116+
// * on Linux, this blows up the binary size from 8MB to 43MB, which is unreasonable.
117+
// let _e = sh.push_env("CARGO_PROFILE_RELEASE_DEBUG", "1");
118+
116119
let linux_target = target.is_linux();
117120
let target_name = match &target.libc_suffix {
118121
Some(libc_suffix) if zig => format!("{}.{libc_suffix}", target.name),

0 commit comments

Comments
 (0)