Skip to content

Commit

Permalink
refactor Builder::cargo, clean deps for cmd!=test
Browse files Browse the repository at this point in the history
  • Loading branch information
collin5 committed Sep 17, 2018
1 parent 9681e13 commit 5ae40be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,10 @@ impl<'a> Builder<'a> {
}
let rustdoc = self.rustdoc(compiler.host);
self.clear_if_dirty(&my_out, &rustdoc);
} else {
} else if cmd != "test" {
match mode {
Mode::Std => {
self.clear_if_dirty(&my_out, &self.rustc(compiler));
self.clear_if_dirty(&my_out, &libstd_stamp);
},
Mode::Test => {
self.clear_if_dirty(&my_out, &libstd_stamp);
Expand All @@ -765,9 +764,7 @@ impl<'a> Builder<'a> {
self.clear_if_dirty(&my_out, &libtest_stamp);
},
Mode::Codegen => {
self.clear_if_dirty(&my_out, &self.rustc(compiler));
self.clear_if_dirty(&my_out, &libstd_stamp);
self.clear_if_dirty(&my_out, &libtest_stamp);
self.clear_if_dirty(&my_out, &librustc_stamp);
},
Mode::ToolBootstrap => { },
Mode::ToolStd => {
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ impl Step for CodegenBackend {
}

let out_dir = builder.cargo_out(compiler, Mode::Codegen, target);
builder.clear_if_dirty(&out_dir, &librustc_stamp(builder, compiler, target));

let mut cargo = builder.cargo(compiler, Mode::Codegen, target, "rustc");
cargo.arg("--manifest-path")
Expand Down

0 comments on commit 5ae40be

Please sign in to comment.