mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Turn on parsing of SIMD in .wat files.
This commit is contained in:
parent
b8d2aee80f
commit
51556e74da
@ -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))?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user