Commit e2a3d8a6 authored by Will Cohen's avatar Will Cohen
Browse files

binaryen: 120_b -> 123;

parent 66b41287
Loading
Loading
Loading
Loading
+29 −29
Original line number Diff line number Diff line
@@ -20,13 +20,13 @@ let
in
stdenv.mkDerivation rec {
  pname = "binaryen";
  version = "120_b";
  version = "123";

  src = fetchFromGitHub {
    owner = "WebAssembly";
    repo = "binaryen";
    rev = "version_${version}";
    hash = "sha256-gdqjsAQp4NTHROAf6i44GjkbtNyLPQZ153k3veK7eYs=";
    hash = "sha256-SFruWOJVxO3Ll1HwjK3DYSPY2IprnDly7QjxrECTrzE=";
  };

  nativeBuildInputs = [
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {

  preConfigure = ''
    if [ $doCheck -eq 1 ]; then
      sed -i '/googletest/d' third_party/CMakeLists.txt
      sed -i '/gtest/d' third_party/CMakeLists.txt
      rmdir test/spec/testsuite
      ln -s ${testsuite} test/spec/testsuite
    else
@@ -51,14 +51,13 @@ stdenv.mkDerivation rec {
    nodejs
    filecheck
  ];
  checkInputs = [
    gtest
  ];
  checkInputs = [ gtest ];
  checkPhase = ''
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib python3 ../check.py $tests
  '';

  tests = [
  tests =
    [
      "version"
      "wasm-opt"
      "wasm-dis"
@@ -70,14 +69,17 @@ stdenv.mkDerivation rec {
      "spec"
      "lld"
      "wasm2js"
    "validator"
    "example"
    "unit"
      # "unit" # fails on test.unit.test_cluster_fuzz.ClusterFuzz
      # "binaryenjs" "binaryenjs_wasm" # not building this
    "lit"
      # "lit" # fails on d8/fuzz_shell*
      "gtest"
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      "example"
      "validator"
    ];
  doCheck = stdenv.hostPlatform.isLinux;

  doCheck = (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin);

  meta = with lib; {
    homepage = "https://github.com/WebAssembly/binaryen";
@@ -89,7 +91,5 @@ stdenv.mkDerivation rec {
    ];
    license = licenses.asl20;
  };
  passthru.tests = {
    inherit emscripten;
  };
  passthru.tests = { inherit emscripten; };
}