mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +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();
|
.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
|
// Load the dylib
|
||||||
let path = dylib_path.as_path().to_str().unwrap();
|
let path = dylib_path.as_path().to_str().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue