mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
can compile uw8loader
This commit is contained in:
@@ -26,13 +26,13 @@ fn main() -> Result<()> {
|
||||
|
||||
constfold::fold_script(&mut script);
|
||||
if let Err(_) = typecheck::tc_script(&mut script, &input) {
|
||||
bail!("Parse failed");
|
||||
bail!("Type check failed");
|
||||
}
|
||||
let wasm = emit::emit(&script);
|
||||
|
||||
wasmparser::validate(&wasm)?;
|
||||
|
||||
filename.set_extension("uw8");
|
||||
filename.set_extension("wasm");
|
||||
File::create(filename)?.write_all(&wasm)?;
|
||||
|
||||
println!("Size of code section: {} bytes", code_section_size(&wasm)?);
|
||||
|
||||
Reference in New Issue
Block a user