We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3ae14 commit ff9bf7bCopy full SHA for ff9bf7b
src/archive.rs
@@ -183,7 +183,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
183
std::process::Command::new("ranlib").arg(output).status().expect("Couldn't run ranlib");
184
185
if !status.success() {
186
- self.config.sess.emit_fatal(RanlibFailure { exit_code: status.code() });
+ self.config.sess.emit_fatal(RanlibFailure { exit_code: format!("{:?}", status.code()) });
187
}
188
189
any_members
src/errors.rs
@@ -4,7 +4,7 @@ use rustc_span::Span;
4
#[derive(SessionDiagnostic)]
5
#[diag(codegen_gcc::ranlib_failure)]
6
pub(crate) struct RanlibFailure {
7
- pub exit_code: Option<i32>
+ pub exit_code: String,
8
9
10
0 commit comments