mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
Merge pull request #4637 from roc-lang/check-link-exit-status
check the exit status of the link cmd
This commit is contained in:
commit
da158bca19
@ -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…
Reference in New Issue
Block a user