minor tweaks
This commit is contained in:
parent
620bf348e1
commit
d43cb7121e
@ -73,6 +73,7 @@ For example:
|
|||||||
You can (cross-)run the entire test suite using:
|
You can (cross-)run the entire test suite using:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
./miri test
|
||||||
./miri test --target i686-unknown-linux-gnu
|
./miri test --target i686-unknown-linux-gnu
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -491,10 +491,8 @@ impl Command {
|
|||||||
// Found it!
|
// Found it!
|
||||||
e.sh.set_var("MIRI_TEST_TARGET", target);
|
e.sh.set_var("MIRI_TEST_TARGET", target);
|
||||||
|
|
||||||
let triple = target
|
let triple =
|
||||||
.clone()
|
target.clone().into_string().map_err(|_| anyhow!("target triple is not UTF-8"))?;
|
||||||
.into_string()
|
|
||||||
.map_err(|_| anyhow!("invalid target triple encoding"))?;
|
|
||||||
Some(triple)
|
Some(triple)
|
||||||
} else if let Ok(target) = std::env::var("MIRI_TEST_TARGET") {
|
} else if let Ok(target) = std::env::var("MIRI_TEST_TARGET") {
|
||||||
// Convert `MIRI_TEST_TARGET` into `--target`.
|
// Convert `MIRI_TEST_TARGET` into `--target`.
|
||||||
|
@ -87,7 +87,7 @@ Just build miri. <flags> are passed to `cargo build`.
|
|||||||
./miri check <flags>:
|
./miri check <flags>:
|
||||||
Just check miri. <flags> are passed to `cargo check`.
|
Just check miri. <flags> are passed to `cargo check`.
|
||||||
|
|
||||||
./miri test [--bless] [--target] <flags>:
|
./miri test [--bless] [--target <target>] <flags>:
|
||||||
Build miri, set up a sysroot and then run the test suite. <flags> are passed
|
Build miri, set up a sysroot and then run the test suite. <flags> are passed
|
||||||
to the test harness.
|
to the test harness.
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ fn main() -> Result<()> {
|
|||||||
let target_str = value
|
let target_str = value
|
||||||
.clone()
|
.clone()
|
||||||
.into_string()
|
.into_string()
|
||||||
.map_err(|_| anyhow!("invalid target triple encoding"))?;
|
.map_err(|_| anyhow!("target triple is not UTF-8"))?;
|
||||||
Some(target_str)
|
Some(target_str)
|
||||||
} else {
|
} else {
|
||||||
bail!("no target triple found")
|
bail!("no target triple found")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user