Commit 95d3d5a5 authored by Dyego Aurélio's avatar Dyego Aurélio
Browse files

replibyte: fix build failure due to undefined __rust_probestack

wasmer 2.x contains assembly that references __rust_probestack from compiler_builtins.
parent 178b2ec9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@ rustPlatform.buildRustPackage rec {

  buildInputs = [ openssl ];

  # Fix undefined reference to `__rust_probestack` from wasmer_vm.
  # Define it as a no-op since it's only needed for stack overflow detection.
  env.RUSTFLAGS = "-C link-arg=-Wl,--defsym,__rust_probestack=0";

  cargoBuildFlags = [ "--all-features" ];

  doCheck = false; # requires multiple dbs to be installed