mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +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
|
# This feature will allow cargo test to run much faster
|
||||||
fast-tests = []
|
fast-tests = []
|
||||||
backend-cranelift = [
|
backend-cranelift = [
|
||||||
|
"wasmer-clif-backend",
|
||||||
"wasmer-runtime-core/backend-cranelift",
|
"wasmer-runtime-core/backend-cranelift",
|
||||||
"wasmer-runtime/cranelift",
|
"wasmer-runtime/cranelift",
|
||||||
"wasmer-middleware-common-tests/clif",
|
"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,
|
Backend::Singlepass => return None,
|
||||||
#[cfg(feature = "backend-cranelift")]
|
#[cfg(feature = "backend-cranelift")]
|
||||||
Backend::Cranelift => Box::new(CraneliftCompiler::new()),
|
Backend::Cranelift => Box::new(CraneliftCompiler::new()),
|
||||||
|
#[cfg(not(feature = "backend-cranelift"))]
|
||||||
|
Backend::Cranelift => return None,
|
||||||
#[cfg(feature = "backend-llvm")]
|
#[cfg(feature = "backend-llvm")]
|
||||||
Backend::LLVM => Box::new(LLVMCompiler::new()),
|
Backend::LLVM => Box::new(LLVMCompiler::new()),
|
||||||
#[cfg(not(feature = "backend-llvm"))]
|
#[cfg(not(feature = "backend-llvm"))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user