From 8b750511bed73d603332fc3377425d32bdb47ae2 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 9 Aug 2017 18:38:46 +0300 Subject: [PATCH] return back the allocator externalizer --- build/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/src/main.rs b/build/src/main.rs index eaa54bc..083266f 100644 --- a/build/src/main.rs +++ b/build/src/main.rs @@ -78,7 +78,11 @@ fn main() { process_output(target_dir, wasm_binary).expect("Failed to process cargo target directory"); 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");