Skip to content

Commit

Permalink
fix: Remove uchar and seq dummy modules
Browse files Browse the repository at this point in the history
they all have their own opam package and were never defined in neither
the compiler on ocamlfind

Signed-off-by: Kate <[email protected]>
  • Loading branch information
kit-ty-kate authored and rgrinberg committed Feb 10, 2022
1 parent 574f0f7 commit ffa7d11
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Unreleased
----------

- Remove `uchar` and `seq` dummy ocamlfind libraries from dune's builtin
library database (#5260, @kit-ty-kate)

- Add a `DUNE_DIFF_COMMAND` environment variable to match `--diff-command`
command-line parameter (@raphael-proust, fix #5369, #5375)

Expand Down
10 changes: 0 additions & 10 deletions src/dune_rules/findlib/meta.ml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ let builtins ~stdlib_dir ~version:ocaml_version =
in
let dynlink = simple "dynlink" [] ~dir:"+" in
let bytes = dummy "bytes" in
let uchar = dummy "uchar" in
let seq = dummy "seq" in
let threads =
{ name = Some (Lib_name.of_string "threads")
; entries =
Expand Down Expand Up @@ -280,14 +278,6 @@ let builtins ~stdlib_dir ~version:ocaml_version =
if Ocaml_version.has_bigarray_library ocaml_version then bigarray :: base
else base
in
let base =
if Ocaml_version.stdlib_includes_uchar ocaml_version then uchar :: base
else base
in
let base =
if Ocaml_version.stdlib_includes_seq ocaml_version then seq :: base
else base
in
let base =
if Path.exists (Path.relative stdlib_dir "graphics.cma") then
graphics :: base
Expand Down
4 changes: 0 additions & 4 deletions src/dune_rules/ocaml_version.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ let supports_response_file version = version >= (4, 05, 0)

let ocamlmklib_supports_response_file version = version >= (4, 08, 0)

let stdlib_includes_uchar version = version >= (4, 03, 0)

let stdlib_includes_bigarray version = version >= (4, 07, 0)

let stdlib_includes_seq version = version >= (4, 07, 0)

let ooi_supports_no_approx version = version >= (4, 05, 0)

let ooi_supports_no_code version = version >= (4, 05, 0)
Expand Down
6 changes: 0 additions & 6 deletions src/dune_rules/ocaml_version.mli
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,9 @@ val supports_response_file : t -> bool
(** Does ocamlmklib support [-args0]? *)
val ocamlmklib_supports_response_file : t -> bool

(** Whether the standard library includes the [Uchar] module *)
val stdlib_includes_uchar : t -> bool

(** Whether the standard library includes the [Bigarray] module *)
val stdlib_includes_bigarray : t -> bool

(** Whether the standard library includes the [Seq] module *)
val stdlib_includes_seq : t -> bool

(** Whether ocamlobjinfo supports -no-approx*)
val ooi_supports_no_approx : t -> bool

Expand Down

0 comments on commit ffa7d11

Please sign in to comment.