Make Native Engine work with conditional native compilation

This commit is contained in:
Syrus
2020-08-07 11:35:42 -07:00
parent f445cc73dd
commit 701973ffae
4 changed files with 47 additions and 52 deletions

View File

@ -210,15 +210,15 @@ impl Compiler for LLVMCompiler {
symbol_registry: &dyn SymbolRegistry,
// The metadata to inject into the wasmer_metadata section of the object file.
wasmer_metadata: &[u8],
) -> Result<Vec<u8>, CompileError> {
self.compile_native_object(
) -> Result<Option<Vec<u8>>, CompileError> {
Ok(Some(self.compile_native_object(
target,
module,
module_translation,
function_body_inputs,
symbol_registry,
wasmer_metadata,
)
)?))
}
/// Compile the module using LLVM, producing a compilation result with