mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Wasm: Preload WasmModule from object file bytes
This commit is contained in:
parent
d3554b2ac0
commit
9c0abcd0da
7 changed files with 121 additions and 120 deletions
|
@ -513,7 +513,15 @@ fn gen_from_mono_module_dev_wasm32(
|
|||
exposed_to_host,
|
||||
};
|
||||
|
||||
let bytes = roc_gen_wasm::build_module(&env, &mut interns, procedures).unwrap();
|
||||
let todo_platform_and_builtins_object_file_bytes = &[];
|
||||
|
||||
let bytes = roc_gen_wasm::build_module(
|
||||
&env,
|
||||
&mut interns,
|
||||
todo_platform_and_builtins_object_file_bytes,
|
||||
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