mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
check the exit status of the link cmd
This commit is contained in:
parent
f9393768f2
commit
0b98609a22
1 changed files with 8 additions and 1 deletions
|
@ -1491,7 +1491,14 @@ pub fn llvm_module_to_dylib(
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
child.wait().unwrap();
|
||||
let exit_status = child.wait().unwrap();
|
||||
|
||||
assert!(
|
||||
exit_status.success(),
|
||||
"\n___________\nLinking command failed with status {:?}:\n\n {:?}\n___________\n",
|
||||
exit_status,
|
||||
child
|
||||
);
|
||||
|
||||
// Load the dylib
|
||||
let path = dylib_path.as_path().to_str().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue