Skip to content

Commit f9ca420

Browse files
committed
bootstrap: pass minicore path when running compiletest step
1 parent 82c2e42 commit f9ca420

File tree

1 file changed

+5
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,11 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
17251725
cmd.arg("--run-lib-path").arg(builder.sysroot_libdir(compiler, target));
17261726
cmd.arg("--rustc-path").arg(builder.rustc(compiler));
17271727

1728+
// Minicore auxiliary lib for `no_core` tests that need `core` stubs in cross-compilation
1729+
// scenarios.
1730+
cmd.arg("--minicore-path")
1731+
.arg(builder.src.join("tests").join("auxiliary").join("minicore.rs"));
1732+
17281733
let is_rustdoc = suite.ends_with("rustdoc-ui") || suite.ends_with("rustdoc-js");
17291734

17301735
if mode == "run-make" {

0 commit comments

Comments
 (0)