Panic in legacy linker if ld returns nonzero

We don't print an error message for this, so it's very
confusing if we don't panic - and legacy linker is
going away eventually anyway, so not worth investing in
better error reporting
This commit is contained in:
Richard Feldman 2022-11-18 14:16:21 -05:00
parent c331925f3f
commit ba90cbfbd2
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -364,12 +364,10 @@ pub fn build_file<'a>(
if exit_status.success() { if exit_status.success() {
problems problems
} else { } else {
let mut problems = problems; todo!(
"gracefully handle `ld` returning exit code {:?}",
// Add an error for `ld` failing exit_status.code()
problems.errors += 1; );
problems
} }
} }
}; };