Skip to content

Commit b12235d

Browse files
committed
Auto merge of #52828 - Mark-Simulacrum:clear-rustdoc-check, r=alexcrichton
Clear out rustdoc check builds if dependencies change r? @alexcrichton
2 parents 866a713 + d68176e commit b12235d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/check.rs

+5
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ impl Step for Rustdoc {
217217
let compiler = builder.compiler(0, builder.config.build);
218218
let target = self.target;
219219

220+
let stage_out = builder.stage_out(compiler, Mode::ToolRustc);
221+
builder.clear_if_dirty(&stage_out, &libstd_stamp(builder, compiler, target));
222+
builder.clear_if_dirty(&stage_out, &libtest_stamp(builder, compiler, target));
223+
builder.clear_if_dirty(&stage_out, &librustc_stamp(builder, compiler, target));
224+
220225
let mut cargo = prepare_tool_cargo(builder,
221226
compiler,
222227
Mode::ToolRustc,

0 commit comments

Comments
 (0)