Starting integration.

This commit is contained in:
losfair
2019-02-14 00:53:36 +08:00
parent 7df7204e4b
commit 8d8db4aa09
5 changed files with 86 additions and 9 deletions

View File

@ -188,10 +188,10 @@ pub fn compile_cache(wasm: &[u8]) -> error::CompileResult<Cache> {
#[cfg(feature = "default-compiler")]
fn default_compiler() -> &'static dyn Compiler {
use lazy_static::lazy_static;
use wasmer_clif_backend::CraneliftCompiler;
use wasmer_dynasm_backend::SinglePassCompiler;
lazy_static! {
static ref DEFAULT_COMPILER: CraneliftCompiler = { CraneliftCompiler::new() };
static ref DEFAULT_COMPILER: SinglePassCompiler = { SinglePassCompiler {} };
}
&*DEFAULT_COMPILER as &dyn Compiler