diff options
| author | bors <bors@rust-lang.org> | 2019-10-21 07:50:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-21 07:50:52 +0000 |
| commit | b7a9c285a50f3a94c44687ba9ff3ab0648243aaa (patch) | |
| tree | 7ba6c90efb3fdfd78658e84b2d2a50b30434511a | |
| parent | 1ba7b4ecefc64d89096501f59feb403e3c826d0f (diff) | |
| parent | 5192daf43e8f913ed1c49322630fbb84ac00d8df (diff) | |
| download | rust-b7a9c285a50f3a94c44687ba9ff3ab0648243aaa.tar.gz rust-b7a9c285a50f3a94c44687ba9ff3ab0648243aaa.zip | |
Auto merge of #65594 - RalfJung:miri, r=oli-obk
bump miri Fixes https://github.com/rust-lang/rust/issues/65529
| -rw-r--r-- | src/bootstrap/test.rs | 10 | ||||
| m--------- | src/tools/miri | 16 |
2 files changed, 11 insertions, 15 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index e09e25de64a..0b7aa0750a1 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -427,7 +427,7 @@ impl Step for Miri { // (We do this separately from the above so that when the setup actually // happens we get some output.) // We re-use the `cargo` from above. - cargo.arg("--env"); + cargo.arg("--print-sysroot"); // FIXME: Is there a way in which we can re-use the usual `run` helpers? let miri_sysroot = if builder.config.dry_run { @@ -437,13 +437,11 @@ impl Step for Miri { let out = cargo.output() .expect("We already ran `cargo miri setup` before and that worked"); assert!(out.status.success(), "`cargo miri setup` returned with non-0 exit code"); - // Output is "MIRI_SYSROOT=<str>\n". + // Output is "<sysroot>\n". let stdout = String::from_utf8(out.stdout) .expect("`cargo miri setup` stdout is not valid UTF-8"); - let stdout = stdout.trim(); - builder.verbose(&format!("`cargo miri setup --env` returned: {:?}", stdout)); - let sysroot = stdout.splitn(2, '=') - .nth(1).expect("`cargo miri setup` stdout did not contain '='"); + let sysroot = stdout.trim_end(); + builder.verbose(&format!("`cargo miri setup --print-sysroot` said: {:?}", sysroot)); sysroot.to_owned() }; diff --git a/src/tools/miri b/src/tools/miri -Subproject 2adc39f27b7fd2d06b3d1d470827928766731a1 +Subproject fccb2398248802a268fcda544ff3945247ef211 |
