We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497ea77 commit d89d51aCopy full SHA for d89d51a
src/dynarray/dune
@@ -3,10 +3,16 @@
3
(* We generate an appropriate dune stanza to avoid Dynarray tests build failures
4
on 5.0 and 5.1 with the opam-less CI GitHub action setup *)
5
6
-let at_least_52 = Sys.(ocaml_release.major,ocaml_release.minor) >= (5,2)
+(* Use ocaml_version instead of ocaml_release (from 4.14) to support 4.12 opam install *)
7
+let ocaml_version_pair =
8
+ let (major,minor) = match String.split_on_char '.' Sys.ocaml_version with
9
+ | major::minor::_ -> (major,minor)
10
+ | _ -> failwith "Unable to extract OCaml version" in
11
+ try (int_of_string major, int_of_string minor)
12
+ with Failure _ -> failwith "Failed to parse OCaml version"
13
14
let dune =
- if at_least_52
15
+ if ocaml_version_pair >= (5,2)
16
then Printf.sprintf {|
17
(test
18
(name lin_tests)
0 commit comments