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 ecda83b commit e5a8d4bCopy full SHA for e5a8d4b
src/bootstrap/src/core/build_steps/tool.rs
@@ -645,7 +645,7 @@ impl Step for Rustdoc {
645
}
646
647
// NOTE: Never modify the rustflags here, it breaks the build cache for other tools!
648
- let cargo = prepare_tool_cargo(
+ let mut cargo = prepare_tool_cargo(
649
builder,
650
build_compiler,
651
Mode::ToolRustc,
@@ -655,6 +655,8 @@ impl Step for Rustdoc {
655
SourceType::InTree,
656
features.as_slice(),
657
);
658
+ cargo.env("CARGO_PROFILE_RELEASE_LTO", "thin");
659
+ cargo.env("CARGO_PROFILE_RELEASE_CODEGEN_UNITS", "1");
660
661
let _guard = builder.msg_tool(
662
Kind::Build,
0 commit comments