Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/dist.rs')
| -rw-r--r-- | xtask/src/dist.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 57a6a0eae1..e8bedbe79e 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -107,7 +107,9 @@ fn dist_server( ) -> anyhow::Result<()> { let _e = sh.push_env("CFG_RELEASE", release); 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_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, |