mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-03-31 02:11:03 +00:00
skip allocator subs
This commit is contained in:
parent
0d5f85eb27
commit
53fac96113
@ -78,11 +78,7 @@ fn main() {
|
|||||||
process_output(target_dir, wasm_binary).expect("Failed to process cargo target directory");
|
process_output(target_dir, wasm_binary).expect("Failed to process cargo target directory");
|
||||||
|
|
||||||
let path = wasm_path(target_dir, wasm_binary);
|
let path = wasm_path(target_dir, wasm_binary);
|
||||||
|
let mut module = parity_wasm::deserialize_file(&path).unwrap();
|
||||||
let mut module = wasm_utils::externalize(
|
|
||||||
parity_wasm::deserialize_file(&path).unwrap(),
|
|
||||||
vec!["_free", "_malloc"],
|
|
||||||
);
|
|
||||||
|
|
||||||
wasm_utils::optimize(&mut module, vec!["_call"]).expect("Optimizer to finish without errors");
|
wasm_utils::optimize(&mut module, vec!["_call"]).expect("Optimizer to finish without errors");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user