mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
wasm_interp: Create a CLI to run .wasm files
This commit is contained in:
parent
6d84c85078
commit
60a671362f
5 changed files with 107 additions and 16 deletions
|
@ -56,7 +56,8 @@ impl Env<'_> {
|
|||
/// Parse the preprocessed host binary
|
||||
/// If successful, the module can be passed to build_app_binary
|
||||
pub fn parse_host<'a>(arena: &'a Bump, host_bytes: &[u8]) -> Result<WasmModule<'a>, ParseError> {
|
||||
WasmModule::preload(arena, host_bytes)
|
||||
let require_relocatable = true;
|
||||
WasmModule::preload(arena, host_bytes, require_relocatable)
|
||||
}
|
||||
|
||||
/// Generate a Wasm module in binary form, ready to write to a file. Entry point from roc_build.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue