add case to emit wasm via llvm

This commit is contained in:
Folkert 2022-10-16 17:02:23 +02:00
parent 82ca7fc8c5
commit 92afe5a46e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -211,7 +211,10 @@ pub fn gen_from_mono_module<'a>(
CodeGenBackend::Llvm => {
gen_from_mono_module_llvm(arena, loaded, roc_file_path, target, code_gen_options)
}
CodeGenBackend::Wasm => unreachable!(),
CodeGenBackend::Wasm => {
// emit wasm via the llvm backend
gen_from_mono_module_llvm(arena, loaded, roc_file_path, target, code_gen_options)
}
}
}