mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-24 18:02:13 +00:00
Fix compilation errors with cranelift.
This commit is contained in:
parent
d45076151e
commit
73cc86de0c
@ -81,6 +81,7 @@ extra-debug = ["wasmer-clif-backend/debug", "wasmer-runtime-core/debug"]
|
||||
# This feature will allow cargo test to run much faster
|
||||
fast-tests = []
|
||||
backend-cranelift = [
|
||||
"wasmer-clif-backend",
|
||||
"wasmer-runtime-core/backend-cranelift",
|
||||
"wasmer-runtime/cranelift",
|
||||
"wasmer-middleware-common-tests/clif",
|
||||
|
@ -907,6 +907,8 @@ fn get_compiler_by_backend(backend: Backend, _opts: &Run) -> Option<Box<dyn Comp
|
||||
Backend::Singlepass => return None,
|
||||
#[cfg(feature = "backend-cranelift")]
|
||||
Backend::Cranelift => Box::new(CraneliftCompiler::new()),
|
||||
#[cfg(not(feature = "backend-cranelift"))]
|
||||
Backend::Cranelift => return None,
|
||||
#[cfg(feature = "backend-llvm")]
|
||||
Backend::LLVM => Box::new(LLVMCompiler::new()),
|
||||
#[cfg(not(feature = "backend-llvm"))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user