Skip to content

Commit 57ca376

Browse files
committed
Add core crates to the should_run functions
Removal of them as direct dependencies of the std crate makes this neccessary.
1 parent 046a95d commit 57ca376

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

src/bootstrap/check.rs

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ impl Step for Std {
2929

3030
fn should_run(run: ShouldRun) -> ShouldRun {
3131
run.all_krates("std")
32+
.path("src/libcore")
33+
.path("src/liballoc")
34+
.path("src/libstd_unicode")
35+
.path("src/rustc/compiler_builtins_shim")
3236
}
3337

3438
fn make_run(run: RunConfig) {

src/bootstrap/compile.rs

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ impl Step for Std {
5050

5151
fn should_run(run: ShouldRun) -> ShouldRun {
5252
run.all_krates("std")
53+
.path("src/libcore")
54+
.path("src/liballoc")
55+
.path("src/libstd_unicode")
56+
.path("src/rustc/compiler_builtins_shim")
5357
}
5458

5559
fn make_run(run: RunConfig) {

src/bootstrap/doc.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,12 @@ impl Step for Std {
434434

435435
fn should_run(run: ShouldRun) -> ShouldRun {
436436
let builder = run.builder;
437-
run.all_krates("std").default_condition(builder.config.docs)
437+
run.all_krates("std")
438+
.path("src/libcore")
439+
.path("src/liballoc")
440+
.path("src/libstd_unicode")
441+
.path("src/rustc/compiler_builtins_shim")
442+
.default_condition(builder.config.docs)
438443
}
439444

440445
fn make_run(run: RunConfig) {

src/bootstrap/test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,10 @@ impl Step for Crate {
15261526
run = run.path(krate.local_path(&builder).to_str().unwrap());
15271527
}
15281528
}
1529-
run
1529+
run.path("src/libcore")
1530+
.path("src/liballoc")
1531+
.path("src/libstd_unicode")
1532+
.path("src/rustc/compiler_builtins_shim")
15301533
}
15311534

15321535
fn make_run(run: RunConfig) {

0 commit comments

Comments
 (0)