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:
Alex Crichton 2014-01-19 16:08:48 -08:00
parent d4640f9d66
commit c62ef2e807

View File

@ -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};
}