diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-09-22 07:57:35 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-31 18:20:11 +0800 |
| commit | f9ca4201f82c31e3325887717a7e8bc0e2004dbf (patch) | |
| tree | 3dc8dad9656e3fe2aba681876e840fd257d9a9e1 | |
| parent | 82c2e42894a7ed5697b7152fdab754d08edd4552 (diff) | |
| download | rust-f9ca4201f82c31e3325887717a7e8bc0e2004dbf.tar.gz rust-f9ca4201f82c31e3325887717a7e8bc0e2004dbf.zip | |
bootstrap: pass minicore path when running compiletest step
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 2ad1b39a87c..0a290a697e6 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1725,6 +1725,11 @@ 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 `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" { |
