bootstrap: pass minicore path when running compiletest step

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-09-22 07:57:35 +00:00 committed by 许杰友 Jieyou Xu (Joe)
parent 82c2e42894
commit f9ca4201f8

View File

@ -1725,6 +1725,11 @@ fn run(self, builder: &Builder<'_>) {
cmd.arg("--run-lib-path").arg(builder.sysroot_libdir(compiler, target));
cmd.arg("--rustc-path").arg(builder.rustc(compiler));
// Minicore auxiliary lib for `no_core` tests that need `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" {