mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Wasm: Improve a todo in roc_build
This commit is contained in:
parent
8c4fd93b07
commit
54e820620a
1 changed files with 6 additions and 2 deletions
|
@ -505,12 +505,16 @@ fn gen_from_mono_module_dev_wasm32(
|
|||
exposed_to_host,
|
||||
};
|
||||
|
||||
let todo_platform_and_builtins_object_file_bytes = &[];
|
||||
let platform_and_builtins_object_file_bytes: &[u8] = if true {
|
||||
todo!("The WebAssembly dev backend is a work in progress. Coming soon!")
|
||||
} else {
|
||||
&[] // This `if` gets rid of "unreachable code" warnings. When we're ready to use it, we'll notice!
|
||||
};
|
||||
|
||||
let bytes = roc_gen_wasm::build_module(
|
||||
&env,
|
||||
&mut interns,
|
||||
todo_platform_and_builtins_object_file_bytes,
|
||||
platform_and_builtins_object_file_bytes,
|
||||
procedures,
|
||||
)
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue