From 19f2a332e9dff82a402d55c43e3965ac27b38879 Mon Sep 17 00:00:00 2001 From: Stefan Grundmann Date: Wed, 25 Mar 2020 17:25:08 +0000 Subject: [PATCH] fix build on OCaml 4.07 was Error: Exception patterns must be at the top level of a match case. in the ocaml code that creates the preprocess stanza. --- lib/dune | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dune b/lib/dune index 1a8b532..a65cba6 100644 --- a/lib/dune +++ b/lib/dune @@ -2,8 +2,9 @@ let preprocess = match Sys.getenv "BISECT_ENABLE" with + | exception _ -> "" | "yes" -> "(preprocess (pps bisect_ppx))" - | _ | exception _ -> "" + | _ -> "" let () = Jbuild_plugin.V1.send @@ {| @@ -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)) -|} \ No newline at end of file +|}