mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-18 19:10:18 +00:00
Merge pull request #3541 from rtfeldman/rocasync
Changes to get roc-async working
This commit is contained in:
commit
ca38ec4eb5
6 changed files with 158 additions and 164 deletions
|
@ -4917,8 +4917,22 @@ pub fn build_proc<'a, 'ctx, 'env>(
|
|||
)
|
||||
}
|
||||
|
||||
RawFunctionLayout::ZeroArgumentThunk(_) => {
|
||||
// do nothing
|
||||
RawFunctionLayout::ZeroArgumentThunk(result) => {
|
||||
// Define only the return value size, since this is a thunk
|
||||
//
|
||||
// * roc__mainForHost_1_Update_result_size() -> i64
|
||||
let ident_string = proc.name.name().as_str(&env.interns);
|
||||
let fn_name: String = format!("{}_1", ident_string);
|
||||
|
||||
let result_type = basic_type_from_layout(env, &result);
|
||||
|
||||
build_host_exposed_alias_size_help(
|
||||
env,
|
||||
&fn_name,
|
||||
name,
|
||||
Some("result"),
|
||||
result_type,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue