Skip to content

Commit

Permalink
fix build on OCaml 4.07
Browse files Browse the repository at this point in the history
 was Error: Exception patterns must be at the top level of a match case.
 in the ocaml code that creates the preprocess stanza.
  • Loading branch information
sg2342 committed Mar 25, 2020
1 parent 472426d commit 19f2a33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

let preprocess =
match Sys.getenv "BISECT_ENABLE" with
| exception _ -> ""
| "yes" -> "(preprocess (pps bisect_ppx))"
| _ | exception _ -> ""
| _ -> ""

let () = Jbuild_plugin.V1.send @@ {|

Expand All @@ -15,4 +16,4 @@ let () = Jbuild_plugin.V1.send @@ {|
(synopsis "RFC6287 OCRA (OATH Challenge-Response Algorithm)")
(libraries astring cstruct hex mirage-crypto mirage-crypto-rng mirage-crypto-pk zarith rresult))

|}
|}

0 comments on commit 19f2a33

Please sign in to comment.