Fix cross-compiled pretty tests
They need to read the metadata of cross-compiled crates, so the pretty things need to have the right target.
This commit is contained in:
parent
d4640f9d66
commit
c62ef2e807
@ -206,7 +206,8 @@ fn run_pretty_test(config: &config, props: &TestProps, testfile: &Path) {
|
||||
}
|
||||
|
||||
fn make_pp_args(config: &config, _testfile: &Path) -> ProcArgs {
|
||||
let args = ~[~"-", ~"--pretty", ~"normal"];
|
||||
let args = ~[~"-", ~"--pretty", ~"normal",
|
||||
~"--target=" + config.target];
|
||||
// FIXME (#9639): This needs to handle non-utf8 paths
|
||||
return ProcArgs {prog: config.rustc_path.as_str().unwrap().to_owned(), args: args};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user