diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-06 10:13:32 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-06 10:15:34 +0100 |
| commit | a9edee7d1adfee012145ab6097b65a464cb50d06 (patch) | |
| tree | 5397b905910361845aa40b177372dcb7ce8fb5b4 /src/bootstrap | |
| parent | c199a3988476f50e203a6cce8e7bcd3b653055ea (diff) | |
| download | rust-a9edee7d1adfee012145ab6097b65a464cb50d06.tar.gz rust-a9edee7d1adfee012145ab6097b65a464cb50d06.zip | |
bootstrap: put Miri sysroot into local build dir
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 08799602a79..a4016b31dc5 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -466,7 +466,13 @@ pub struct Miri { impl Miri { /// Run `cargo miri setup` for the given target, return where the Miri sysroot was put. - pub fn build_miri_sysroot(builder: &Builder<'_>, compiler: Compiler, miri: &Path, target: TargetSelection) -> String { + pub fn build_miri_sysroot( + builder: &Builder<'_>, + compiler: Compiler, + miri: &Path, + target: TargetSelection, + ) -> String { + let miri_sysroot = builder.out.join(compiler.host.triple).join("miri-sysrot"); let mut cargo = tool::prepare_tool_cargo( builder, compiler, @@ -485,6 +491,8 @@ impl Miri { cargo.env("MIRI_LIB_SRC", builder.src.join("library")); // Tell it where to find Miri. cargo.env("MIRI", &miri); + // Tell it where to put the sysroot. + cargo.env("MIRI_SYSROOT", &miri_sysroot); // Debug things. cargo.env("RUST_BACKTRACE", "1"); |
