pub fn default_compiler() -> &'static dyn Compiler {
    use lazy_static::lazy_static;

    #[cfg(feature = "llvm")]
    use wasmer_llvm_backend::LLVMCompiler as DefaultCompiler;

    #[cfg(feature = "dynasm")]
    use wasmer_dynasm_backend::SinglePassCompiler as DefaultCompiler;

    #[cfg(not(any(feature = "llvm", feature = "dynasm")))]
    use wasmer_clif_backend::CraneliftCompiler as DefaultCompiler;

    lazy_static! {
        static ref DEFAULT_COMPILER: DefaultCompiler = { DefaultCompiler::new() };
    }

    &*DEFAULT_COMPILER as &dyn Compiler
}
/// Get a single instance of the default compiler to use.
Get a single instance of the default compiler to use.
Get a single instance of the default compiler to use .
pub fn default_compiler() -> &'static dyn Compiler {
    use lazy_static::lazy_static;
    #[cfg(feature = "llvm")]
    use wasmer_llvm_backend::LLVMCompiler as DefaultCompiler;
    #[cfg(feature = "dynasm")]
    use wasmer_dynasm_backend::SinglePassCompiler as DefaultCompiler;
    #[cfg(not(any(feature = "llvm", feature = "dynasm")))]
    use wasmer_clif_backend::CraneliftCompiler as DefaultCompiler;
    lazy_static! {
        static ref DEFAULT_COMPILER: DefaultCompiler = { DefaultCompiler::new() };
    }
    &*DEFAULT_COMPILER as &dyn Compiler
}
pub fn default_compiler ( ) -> & ' static dyn Compiler { use lazy_static :: lazy_static ; # [ cfg ( feature " " ) ] use wasmer_llvm_backend :: LLVMCompiler as DefaultCompiler ; # [ cfg ( feature " " ) ] use wasmer_dynasm_backend :: SinglePassCompiler as DefaultCompiler ; # [ cfg ( not ( any ( feature " " feature " " ) ) ) ] use wasmer_clif_backend :: CraneliftCompiler as DefaultCompiler ; lazy_static ! { static ref DEFAULT_COMPILER DefaultCompiler { DefaultCompiler new ( ) } } & * DEFAULT_COMPILER as & dyn Compiler }
Get a single instance of the default compiler to use.
Get a single instance of the default compiler to use .