Skip to content

Commit

Permalink
Pass minicore path via bootstrap when building compiletest step
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Sep 28, 2024
1 parent 68eb20f commit 421fc56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,10 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
cmd.arg("--run-lib-path").arg(builder.sysroot_libdir(compiler, target));
cmd.arg("--rustc-path").arg(builder.rustc(compiler));

// Minicore auxiliary lib for tests that need std/core stubs in cross-compilation scenarios.
cmd.arg("--minicore-path")
.arg(builder.src.join("tests").join("auxiliary").join("minicore.rs"));

let is_rustdoc = suite.ends_with("rustdoc-ui") || suite.ends_with("rustdoc-js");

if mode == "run-make" {
Expand Down

0 comments on commit 421fc56

Please sign in to comment.