Skip to content

Commit

Permalink
Fix compilation in 4.07
Browse files Browse the repository at this point in the history
    module extension

Signed-off-by: François Bobot <francois.bobot@cea.fr>
  • Loading branch information
bobot committed Mar 23, 2020
1 parent ed18fa3 commit 28de472
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/dune/coq_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ let coq_plugins_install_rules ~scope ~package ~dst_dir (s : Dune_file.Coq.t) =
let dst =
Path.Local.(to_string (relative dst_dir plugin_file_basename))
in
(None, Install.(Entry.make Section.Lib_root ~dst plugin_file)))
(None, Install.Entry.make Section.Lib_root ~dst plugin_file))
else
[]
in
Expand Down
16 changes: 0 additions & 16 deletions src/dune/install.ml
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,6 @@ end

module Section = struct
include Section
type t = Section.t =
| Lib
| Lib_root
| Libexec
| Libexec_root
| Bin
| Sbin
| Toplevel
| Share
| Share_root
| Etc
| Doc
| Stublibs
| Man
| Misc


module Paths = struct
type t =
Expand Down
16 changes: 1 addition & 15 deletions src/dune/install.mli
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,7 @@ module SectionWithSite : sig
end

module Section : sig
type t = Section.t =
| Lib
| Lib_root
| Libexec
| Libexec_root
| Bin
| Sbin
| Toplevel
| Share
| Share_root
| Etc
| Doc
| Stublibs
| Man
| Misc
type t = Section.t

module Set : Set.S with type elt = t

Expand Down
2 changes: 1 addition & 1 deletion src/dune/install_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ end = struct
( None
, Install.Entry.make
~dst:(sprintf "odoc-pages/%s" (Path.Build.basename mld))
Install.Section.Doc mld ))
Section.Doc mld ))
| Dune_file.Plugin t ->
Plugin_rules.install_rules ~sctx ~dir t
| _ -> []
Expand Down

0 comments on commit 28de472

Please sign in to comment.