Skip to content

Commit

Permalink
Add core crates to the should_run functions
Browse files Browse the repository at this point in the history
Removal of them as direct dependencies of the std crate
makes this neccessary.
  • Loading branch information
est31 committed Jun 10, 2018
1 parent 046a95d commit 57ca376
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl Step for Std {

fn should_run(run: ShouldRun) -> ShouldRun {
run.all_krates("std")
.path("src/libcore")
.path("src/liballoc")
.path("src/libstd_unicode")
.path("src/rustc/compiler_builtins_shim")
}

fn make_run(run: RunConfig) {
Expand Down
4 changes: 4 additions & 0 deletions src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ impl Step for Std {

fn should_run(run: ShouldRun) -> ShouldRun {
run.all_krates("std")
.path("src/libcore")
.path("src/liballoc")
.path("src/libstd_unicode")
.path("src/rustc/compiler_builtins_shim")
}

fn make_run(run: RunConfig) {
Expand Down
7 changes: 6 additions & 1 deletion src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,12 @@ impl Step for Std {

fn should_run(run: ShouldRun) -> ShouldRun {
let builder = run.builder;
run.all_krates("std").default_condition(builder.config.docs)
run.all_krates("std")
.path("src/libcore")
.path("src/liballoc")
.path("src/libstd_unicode")
.path("src/rustc/compiler_builtins_shim")
.default_condition(builder.config.docs)
}

fn make_run(run: RunConfig) {
Expand Down
5 changes: 4 additions & 1 deletion src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,10 @@ impl Step for Crate {
run = run.path(krate.local_path(&builder).to_str().unwrap());
}
}
run
run.path("src/libcore")
.path("src/liballoc")
.path("src/libstd_unicode")
.path("src/rustc/compiler_builtins_shim")
}

fn make_run(run: RunConfig) {
Expand Down

0 comments on commit 57ca376

Please sign in to comment.