diff --git a/lib/runtime/src/lib.rs b/lib/runtime/src/lib.rs index 4ad74c345..fb8d2d80f 100644 --- a/lib/runtime/src/lib.rs +++ b/lib/runtime/src/lib.rs @@ -152,7 +152,8 @@ pub fn instantiate(wasm: &[u8], import_object: &ImportObject) -> error::Result &'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; #[cfg(feature = "llvm")]