Skip to content

Commit

Permalink
Don't build examples on OCaml < 4.08
Browse files Browse the repository at this point in the history
Work-around for ocaml/dune#5621
  • Loading branch information
talex5 committed May 19, 2022
1 parent 616d226 commit 7962b8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.0)
(lang dune 2.3)
(name prometheus)
(formatting disabled)
1 change: 1 addition & 0 deletions examples/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(executable
(name example)
(enabled_if (>= %{ocaml_version} 4.08)) ; Work-around for dune bug #5621
(libraries prometheus prometheus-app.unix cmdliner cohttp-lwt cohttp-lwt-unix))
2 changes: 1 addition & 1 deletion prometheus-app.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ doc: "https://mirage.github.io/prometheus/"
bug-reports: "https://github.com/mirage/prometheus/issues"
depends: [
"ocaml" {>= "4.08"}
"dune" {>= "2.0"}
"dune" {>= "2.3"}
"prometheus" {= version}
"fmt" {>= "0.8.7"}
"re"
Expand Down
2 changes: 1 addition & 1 deletion prometheus.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ doc: "https://mirage.github.io/prometheus/"
bug-reports: "https://github.com/mirage/prometheus/issues"
depends: [
"ocaml" {>= "4.01.0"}
"dune" {>= "2.0"}
"dune" {>= "2.3"}
"astring"
"asetmap"
"re"
Expand Down

0 comments on commit 7962b8e

Please sign in to comment.