diff options
author | Oleksii Filonenko <brightone@protonmail.com> | 2021-01-19 00:49:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 00:49:28 +0200 |
commit | ab1fb17e598fcef27eb8d04f2ba5974361ade541 (patch) | |
tree | 15e083bc849a090b6f8e00f5c40781696b31392e | |
parent | c3016f226a9b78e96456cf0bec7e0e634a017831 (diff) | |
parent | 5cf2869118b1db3ae86e6e234462eadd4e1d098d (diff) |
Merge pull request #97518 from goodbyekansas/wasmer-backend
wasmer: enable cranelift backend
-rw-r--r-- | pkgs/development/interpreters/wasmer/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix index 7b390c547163..60ce4d89f19c 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; { |