Add --enable-simd flag to wasmer run and wasmer validate.

This commit is contained in:
Nick Lewycky
2019-07-25 23:33:30 -07:00
parent ab5f28851a
commit 8f417f3d59
4 changed files with 63 additions and 6 deletions

View File

@ -110,6 +110,11 @@ impl Default for MemoryBoundCheckMode {
}
}
#[derive(Default)]
pub struct Features {
pub simd: bool,
}
/// Configuration data for the compiler
#[derive(Default)]
pub struct CompilerConfig {
@ -118,6 +123,7 @@ pub struct CompilerConfig {
pub memory_bound_check_mode: MemoryBoundCheckMode,
pub enforce_stack_check: bool,
pub track_state: bool,
pub features: Features,
}
pub trait Compiler {