about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorSimon Rainerson <simon.rainerson@goodbyekansas.com>2020-09-09 10:16:52 +0200
committerSimon Rainerson <simon.rainerson@goodbyekansas.com>2020-09-09 14:22:58 +0200
commit5cf2869118b1db3ae86e6e234462eadd4e1d098d (patch)
tree0d8fdc3078589912dfd320be2fb7bbed92fc1367 /pkgs/development/interpreters
parent607b0ae7aeb28227b8941c9a565ac20b0d38f6d5 (diff)
downloadnixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar.gz
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar.bz2
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar.lz
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar.xz
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.tar.zst
nixlib-5cf2869118b1db3ae86e6e234462eadd4e1d098d.zip
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.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/wasmer/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix
index c620b1686ea6..c036b0808909 100644
--- a/pkgs/development/interpreters/wasmer/default.nix
+++ b/pkgs/development/interpreters/wasmer/default.nix
@@ -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; {