Add "auto" backend to change the backend depending on the wasm file size

This commit is contained in:
Asami Doi
2019-11-22 19:02:57 +09:00
parent dfc7163b71
commit fd0df9946b
5 changed files with 34 additions and 10 deletions

View File

@ -254,11 +254,6 @@ pub fn compiler_for_backend(backend: Backend) -> Option<Box<dyn Compiler>> {
#[cfg(feature = "llvm")]
Backend::LLVM => Some(Box::new(wasmer_llvm_backend::LLVMCompiler::new())),
#[cfg(any(
not(feature = "llvm"),
not(feature = "singlepass"),
not(feature = "cranelift")
))]
_ => None,
}
}