fix building sysroot for JSON targets
This commit is contained in:
parent
0f4176d682
commit
070102bb1b
2 changed files with 3 additions and 1 deletions
|
|
@ -88,6 +88,8 @@ pub fn setup(
|
|||
};
|
||||
let cargo_cmd = {
|
||||
let mut command = cargo();
|
||||
// Allow JSON targets since users do not have a good way to set this flag otherwise.
|
||||
command.arg("-Zjson-target-spec");
|
||||
// Use Miri as rustc to build a libstd compatible with us (and use the right flags).
|
||||
// We set ourselves (`cargo-miri`) instead of Miri directly to be able to patch the flags
|
||||
// for `libpanic_abort` (usually this is done by bootstrap but we have to do it ourselves).
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ function run_tests_minimal {
|
|||
time ./miri test $TARGET_FLAG "$@"
|
||||
|
||||
# Ensure that a small smoke test of cargo-miri works.
|
||||
time cargo miri run --manifest-path test-cargo-miri/no-std-smoke/Cargo.toml $TARGET_FLAG
|
||||
time cargo miri run --manifest-path test-cargo-miri/no-std-smoke/Cargo.toml -Zjson-target-spec $TARGET_FLAG
|
||||
|
||||
endgroup
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue