Needed to diagnose https://github.com/rust-lang/rust/issues/33844
Signed-off-by: Peter Atashian <retep998@gmail.com>
info!("linker stdout:\n{}", escape_string(&prog.stdout[..]));
},
Err(e) => {
- sess.fatal(&format!("could not exec the linker `{}`: {}", pname, e));
+ // Trying to diagnose https://github.com/rust-lang/rust/issues/33844
+ sess.struct_err(&format!("could not exec the linker `{}`: {}", pname, e))
+ .note(&format!("{:?}", &cmd))
+ .emit();
+ sess.abort_if_errors();
}
}