Skip to content

Commit

Permalink
solc: remove Z3 version hardcoding
Browse files Browse the repository at this point in the history
solc compiles with the latest Z3.
  • Loading branch information
numinit committed Jan 19, 2025
1 parent 7d0f11e commit ee5a842
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkgs/by-name/so/solc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
python3,
versionCheckHook,
z3Support ? true,
z3_4_11 ? null,
z3 ? null,
cvc4Support ? gccStdenv.hostPlatform.isLinux,
cvc4 ? null,
cln ? null,
Expand All @@ -19,10 +19,6 @@

# compiling source/libsmtutil/CVC4Interface.cpp breaks on clang on Darwin,
# general commandline tests fail at abiencoderv2_no_warning/ on clang on NixOS
let
z3 = z3_4_11;
in

assert z3Support -> z3 != null && lib.versionAtLeast z3.version "4.11.0";
assert cvc4Support -> cvc4 != null && cln != null && gmp != null;

Expand Down Expand Up @@ -125,6 +121,8 @@ let
))
]; # contextlib2 glob2 textwrap3 traceback2 urllib3

enableParallelBuilding = true;

# tests take 60+ minutes to complete, only run as part of passthru tests
doCheck = false;

Expand Down

0 comments on commit ee5a842

Please sign in to comment.