Turn on parsing of SIMD in .wat files.

This commit is contained in:
Nick Lewycky 2019-07-02 14:32:41 -07:00
parent b8d2aee80f
commit 51556e74da

View File

@ -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))?;
}