cmd.args(&sess.target.target.options.post_link_args[]);
if sess.opts.debugging_opts.print_link_args {
- println!("{}", &cmd);
+ println!("{:?}", &cmd);
}
cmd.stdin(::std::io::process::Ignored)
match cmd.status() {
Ok(status) => {
if !status.success() {
- sess.err(&format!("linking of {} with `{}` failed",
+ sess.err(&format!("linking of {} with `{:?}` failed",
output_path.display(), cmd)[]);
sess.abort_if_errors();
}
cmd.arg("-c").arg("-o").arg(outputs.path(config::OutputTypeObject))
.arg(outputs.temp_path(config::OutputTypeAssembly));
- debug!("{}", &cmd);
+ debug!("{:?}", &cmd);
match cmd.output() {
Ok(prog) => {
sess.err(&format!("linking with `{}` failed: {}",
pname,
prog.status)[]);
- sess.note(&format!("{}", &cmd)[]);
+ sess.note(&format!("{:?}", &cmd)[]);
let mut note = prog.error.clone();
note.push_all(&prog.output[]);
sess.note(str::from_utf8(¬e[]).unwrap());