mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
hit a linker error, finally
This commit is contained in:
parent
4c3f0a5002
commit
035444fb81
2 changed files with 4 additions and 2 deletions
|
@ -3432,7 +3432,9 @@ fn get_foreign_symbol<'a, 'ctx, 'env>(
|
|||
None => {
|
||||
let foreign_function = module.add_function(
|
||||
foreign_symbol.as_str(),
|
||||
context.i64_type().fn_type(&[], false),
|
||||
context
|
||||
.struct_type(&[], false)
|
||||
.fn_type(&[context.struct_type(&[], false).into()], false),
|
||||
Some(Linkage::External),
|
||||
);
|
||||
foreign_function.set_call_conventions(C_CALL_CONV);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue