From 51556e74da41a8e21901fa9d4e39b30a7e621a3a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 2 Jul 2019 14:32:41 -0700 Subject: [PATCH] Turn on parsing of SIMD in .wat files. --- src/bin/wasmer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index d1e46fbd6..09de195e0 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -310,7 +310,9 @@ fn execute_wasm(options: &Run) -> Result<(), String> { }; if !utils::is_wasm_binary(&wasm_binary) { - wasm_binary = wabt::wat2wasm(wasm_binary) + let mut features = wabt::Features::new(); + features.enable_simd(); + wasm_binary = wabt::wat2wasm_with_features(wasm_binary, features) .map_err(|e| format!("Can't convert from wast to wasm: {:?}", e))?; }