Skip to content

Commit e5a8d4b

Browse files
committed
WIP
1 parent ecda83b commit e5a8d4b

File tree

1 file changed

+3
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ impl Step for Rustdoc {
645645
}
646646

647647
// NOTE: Never modify the rustflags here, it breaks the build cache for other tools!
648-
let cargo = prepare_tool_cargo(
648+
let mut cargo = prepare_tool_cargo(
649649
builder,
650650
build_compiler,
651651
Mode::ToolRustc,
@@ -655,6 +655,8 @@ impl Step for Rustdoc {
655655
SourceType::InTree,
656656
features.as_slice(),
657657
);
658+
cargo.env("CARGO_PROFILE_RELEASE_LTO", "thin");
659+
cargo.env("CARGO_PROFILE_RELEASE_CODEGEN_UNITS", "1");
658660

659661
let _guard = builder.msg_tool(
660662
Kind::Build,

0 commit comments

Comments
 (0)