mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Determine host-exposed lambda sets once based on proc variable
Rather than calculating the HELS for each host-exposed layout (of which there may be multiple), we only need to calculate the HELS based on the top-level type of the host-exposed function. Also renamed `GlueProcs.extern_names` to `GlueProcs.legacy_layout_based_extern_names` since they are still currently generated based on the layout, but I think we want to generate all HELS via type variable. Fixes false-interpreter builds in debug.
This commit is contained in:
parent
4824de5192
commit
0744ef946b
2 changed files with 24 additions and 18 deletions
|
@ -3437,7 +3437,7 @@ fn finish_specialization<'a>(
|
|||
);
|
||||
|
||||
let lambda_set_names = all_glue_procs
|
||||
.extern_names
|
||||
.legacy_layout_based_extern_names
|
||||
.iter()
|
||||
.map(|(lambda_set_id, _)| (*_name, *lambda_set_id));
|
||||
exposed_to_host.lambda_sets.extend(lambda_set_names);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue