mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Make gen_wasm's Env mutable
This commit is contained in:
parent
f4d52f7084
commit
e7d8c7c895
5 changed files with 27 additions and 14 deletions
|
@ -504,14 +504,14 @@ fn gen_from_mono_module_dev_wasm32(
|
|||
.copied()
|
||||
.collect::<MutSet<_>>();
|
||||
|
||||
let env = roc_gen_wasm::Env {
|
||||
let mut env = roc_gen_wasm::Env {
|
||||
arena,
|
||||
module_id,
|
||||
interns,
|
||||
exposed_to_host,
|
||||
};
|
||||
|
||||
let bytes = roc_gen_wasm::build_module(&env, procedures).unwrap();
|
||||
let bytes = roc_gen_wasm::build_module(&mut env, procedures).unwrap();
|
||||
|
||||
std::fs::write(&app_o_file, &bytes).expect("failed to write object to file");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue