Skip to content

Commit

Permalink
solc: fix build on GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 31, 2024
1 parent df28e19 commit 3b085fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/so/solc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ 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"
Expand Down

0 comments on commit 3b085fd

Please sign in to comment.