From: Stephane Glondu Date: Mon, 17 Jun 2024 08:54:42 +0200 Subject: Fix build with OCaml 5.x --- setup.ml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/setup.ml b/setup.ml index e7d559b..a5d28ff 100644 --- a/setup.ml +++ b/setup.ml @@ -21,9 +21,9 @@ (******************************************************************************) (* OASIS_START *) -(* DO NOT EDIT (digest: 6bf336bd3a817bf7523ab66c3f46186c) *) +(* DO NOT EDIT (digest: 5acc6ab1bbaca87762c875c98110f6ad) *) (* - Regenerated by OASIS v0.4.11~HEAD + Regenerated by OASIS v0.4.11 Visit http://oasis.forge.ocamlcore.org for more information and documentation about functions used in this file. *) @@ -1792,7 +1792,7 @@ module OASISFeatures = struct Map.Make (struct type t = plugin_kind * name - let compare = Pervasives.compare + let compare = Stdlib.compare end) module Data = @@ -3485,7 +3485,7 @@ module BaseEnv = struct ([], None) (List.sort (fun (o1, _) (o2, _) -> - Pervasives.compare o2 o1) + Stdlib.compare o2 o1) lst) in match res, errors with @@ -6518,6 +6518,8 @@ module OCamlbuildCommon = struct let fix_args args extra_argv = List.flatten [ + ["-use-ocamlfind"; "-tag"; "package\\(camlp-streams\\)"; "-plugin-tag"; "package\\(camlp-streams\\)"]; + if (os_type ()) = "Win32" then [ "-classic-display"; @@ -6868,7 +6870,7 @@ module OCamlbuildDocPlugin = struct end -# 6851 "setup.ml" +# 6853 "setup.ml" module CustomPlugin = struct # 22 "src/plugins/custom/CustomPlugin.ml" @@ -7000,7 +7002,7 @@ module CustomPlugin = struct end -# 6983 "setup.ml" +# 6985 "setup.ml" open OASISTypes;; let setup_t = @@ -11805,9 +11807,9 @@ let setup_t = schema_data = PropList.Data.create (); plugin_data = [] }; - oasis_fn = None; - oasis_version = "0.4.11~HEAD"; - oasis_digest = None; + oasis_fn = Some "_oasis"; + oasis_version = "0.4.11"; + oasis_digest = Some "M\233\243N\025\208\179b\202K\232\t\132~\222\226"; oasis_exec = None; oasis_setup_args = []; setup_update = false @@ -11815,7 +11817,7 @@ let setup_t = let setup () = BaseSetup.setup setup_t;; -# 11799 "setup.ml" +# 11801 "setup.ml" let setup_t = BaseCompat.Compat_0_4.adapt_setup_t setup_t open BaseCompat.Compat_0_4 (* OASIS_STOP *)