Commit 4c6db771 authored by Ming-Chuan's avatar Ming-Chuan
Browse files

solc: 0.8.28 -> 0.8.33

Fixes build with GCC 15
parent ccca3842
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -25,9 +25,9 @@ assert cvc4Support -> cvc4 != null && cln != null && gmp != null;
let
  pname = "solc";

  version = "0.8.28";
  linuxHash = "sha256-kosJ10stylGK5NUtsnMM7I+OfhR40TXPQDvnggOFLLc=";
  darwinHash = "sha256-gVFbDlPeqiZtVJVFzKrApalubU6CAcd/ZzsscQl22eo=";
  version = "0.8.33";
  linuxHash = "sha256-sWCV0GOUW5GPNX1flk+UOrdwoHZHnx4MsZMGDDBxx6M=";
  darwinHash = "sha256-gyQoBZHOOY1+JyKEa8EOzxd5sToyjvl7aHySzZxwgBo=";

  nativeInstallCheckInputs = [
    versionCheckHook
@@ -64,15 +64,6 @@ let
          hash = linuxHash;
        };

        # Fix build with GCC 14
        # Submitted upstream: https://github.com/ethereum/solidity/pull/15685
        postPatch = ''
          substituteInPlace test/yulPhaser/Chromosome.cpp \
            --replace-fail \
              "BOOST_TEST(abs" \
              "BOOST_TEST(fabs"
        '';

        cmakeFlags = [
          "-DBoost_USE_STATIC_LIBS=OFF"