wasmer: enable cranelift backend
Since wasmer 0.17 no backends are enabled by default. Backends are now detected using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile). This change enables cranelift as this used to be the old default. At least one backend is needed for the `run` subcommand to work. If we want to replicate the actual logic in the makefile, we would probably want to enable the singlepass and llvm backend as well. However enabling llvm backend introduces a dependency on openssl, so we opted for replicating the old default behavior.
This commit is contained in:
parent
607b0ae7ae
commit
5cf2869118
@ -22,6 +22,12 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
# Since wasmer 0.17 no backends are enabled by default. Backends are now detected
|
||||
# using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile).
|
||||
# Enabling cranelift as this used to be the old default. At least one backend is
|
||||
# needed for the run subcommand to work.
|
||||
cargoBuildFlags = [ "--features 'backend-cranelift'" ];
|
||||
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user