Skip to content

Commit

Permalink
Add conflicts on solvers versions outside depopt range
Browse files Browse the repository at this point in the history
We want to nudge our users to install versions of the solvers that are
actually compatible with smtml. To this end, I added a conflict with
solver versions that are outside of the depopt range.
  • Loading branch information
krtab committed Jun 27, 2024
1 parent 539b815 commit 1c4129e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 10 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,24 @@
(synopsis "A Front-end library for SMT solvers in OCaml")
(description "A Multi Back-end Front-end for SMT Solvers in OCaml.")
; Optional solver dependencies
; Change here sould be mirrored in "conflicts"
(depopts
(z3
(and
(>= "4.12.2")
(<= "4.13")))
(< "4.14")))
colibri2
(bitwuzla-cxx
(>= "0.4.0"))
cvc5)
(conflicts
(z3
(or
(< "4.12.2")
(>= "4.14")))
(bitwuzla-cxx
(< "0.4.0"))
)
(depends
dune
(ocaml
Expand Down
6 changes: 5 additions & 1 deletion smtml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ depends: [
"bisect_ppx" {with-test & >= "2.5.0"}
]
depopts: [
"z3" {>= "4.12.2" & <= "4.13"}
"z3" {>= "4.12.2" & < "4.14"}
"colibri2"
"bitwuzla-cxx" {>= "0.4.0"}
"cvc5"
]
conflicts: [
"z3" {< "4.12.2" | >= "4.14"}
"bitwuzla-cxx" {< "0.4.0"}
]
build: [
["dune" "subst"] {dev}
[
Expand Down

0 comments on commit 1c4129e

Please sign in to comment.