mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
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:
parent
c331925f3f
commit
ba90cbfbd2
1 changed files with 4 additions and 6 deletions
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue