1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-03-31 23:11:04 +00:00

feat(runtime) Make default_compiler public.

This is required to be able to deserialize a serialized module in
`runtime-c-api`.
This commit is contained in:
Ivan Enderlin 2019-03-15 11:39:21 +01:00
parent b0b0a17d6e
commit 92ff24f5a2

@ -152,7 +152,8 @@ pub fn instantiate(wasm: &[u8], import_object: &ImportObject) -> error::Result<I
module.instantiate(import_object) module.instantiate(import_object)
} }
fn default_compiler() -> &'static dyn Compiler { /// Get a single instance of the default compiler to use.
pub fn default_compiler() -> &'static dyn Compiler {
use lazy_static::lazy_static; use lazy_static::lazy_static;
#[cfg(feature = "llvm")] #[cfg(feature = "llvm")]