We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2016aa commit 7bce3efCopy full SHA for 7bce3ef
src/bootstrap/src/core/build_steps/tool.rs
@@ -229,6 +229,9 @@ pub fn prepare_tool_cargo(
229
// `RUSTFLAGS` causes unnecessary tool rebuilds due to cache invalidation from building e.g.
230
// cargo *without* `-Zon-broken-pipe=kill` but then rustdoc *with* `-Zon-broken-pipe=kill`.
231
cargo.env("FORCE_ON_BROKEN_PIPE_KILL", "-Zon-broken-pipe=kill");
232
+ } else {
233
+ cargo.env("CARGO_PROFILE_RELEASE_LTO", "thin");
234
+ cargo.env("CARGO_PROFILE_RELEASE_CODEGEN_UNITS", "1");
235
}
236
237
cargo
0 commit comments