mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 01:39:26 +00:00
Make Native Engine work with conditional native compilation
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user