提交 b6400f99 编写于 作者: B bors

auto merge of #11675 : alexcrichton/rust/fix-snap, r=cmr

They need to read the metadata of cross-compiled crates, so the pretty things
need to have the right target.
......@@ -206,7 +206,8 @@ fn print_source(config: &config, testfile: &Path, src: ~str) -> ProcRes {
}
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};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册