Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22502 from lnicola/less-debug
Revert "Merge pull request #22492 from Veykril/push-onsxmumorqlz"
| -rw-r--r-- | xtask/src/dist.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 8017ff93e8..e8bedbe79e 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -106,13 +106,16 @@ fn dist_server( dev_rel: bool, ) -> anyhow::Result<()> { let _e = sh.push_env("CFG_RELEASE", release); - let _e = sh.push_env("CARGO_PROFILE_RELEASE_DEBUG", "limited"); let _e = sh.push_env("CARGO_PROFILE_RELEASE_LTO", "thin"); let _e = sh.push_env("CARGO_PROFILE_RELEASE_CODEGEN_UNITS", "1"); - let _e = sh.push_env("CARGO_PROFILE_DEV_REL_DEBUG", "limited"); let _e = sh.push_env("CARGO_PROFILE_DEV_REL_LTO", "thin"); let _e = sh.push_env("CARGO_PROFILE_DEV_REL_CODEGEN_UNITS", "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 = sh.push_env("CARGO_PROFILE_RELEASE_DEBUG", "1"); + let linux_target = target.is_linux(); let target_name = match &target.libc_suffix { Some(libc_suffix) if zig => format!("{}.{libc_suffix}", target.name), |