mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
make the surgical linker aware of custom exported closure names
This commit is contained in:
parent
eb08c12099
commit
73bc50c952
7 changed files with 124 additions and 79 deletions
|
@ -290,7 +290,7 @@ pub fn gen_from_mono_module_llvm(
|
|||
// in gen_tests, the compiler provides roc_panic
|
||||
// and sets up the setjump/longjump exception handling
|
||||
is_gen_test: false,
|
||||
exposed_to_host: loaded.exposed_to_host.keys().copied().collect(),
|
||||
exposed_to_host: loaded.exposed_to_host.values.keys().copied().collect(),
|
||||
};
|
||||
|
||||
roc_gen_llvm::llvm::build::build_procedures(
|
||||
|
@ -495,6 +495,7 @@ fn gen_from_mono_module_dev_wasm32(
|
|||
|
||||
let exposed_to_host = loaded
|
||||
.exposed_to_host
|
||||
.values
|
||||
.keys()
|
||||
.copied()
|
||||
.collect::<MutSet<_>>();
|
||||
|
@ -544,7 +545,7 @@ fn gen_from_mono_module_dev_assembly(
|
|||
let env = roc_gen_dev::Env {
|
||||
arena,
|
||||
module_id,
|
||||
exposed_to_host: exposed_to_host.keys().copied().collect(),
|
||||
exposed_to_host: exposed_to_host.values.keys().copied().collect(),
|
||||
lazy_literals,
|
||||
generate_allocators,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue