File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ let find_partials odoc_dir =
104
104
| Ok h -> (h, tbl)
105
105
| Error _ -> (* odoc_dir doesn't exist...? *) (Util.StringMap. empty, tbl)
106
106
107
- let compile partial ~output_dir ?linked_dir all =
107
+ let compile ? partial ~output_dir ?linked_dir all =
108
108
let linked_dir = Option. value linked_dir ~default: output_dir in
109
109
let hashes = mk_byhash all in
110
110
let other_hashes, tbl =
Original file line number Diff line number Diff line change @@ -3,11 +3,16 @@ type compiled
3
3
val init_stats : Packages .set -> unit
4
4
5
5
val compile :
6
- Fpath .t option ->
6
+ ? partial : Fpath .t ->
7
7
output_dir :Fpath .t ->
8
8
?linked_dir : Fpath .t ->
9
9
Packages .set ->
10
10
compiled list
11
+ (* * Use [partial] to reuse the output of a previous call to [compile]. Useful in
12
+ the voodoo context.
13
+
14
+ [output_dir] is the directory for [odoc] file, [linked_dir] is the one for
15
+ [odocl] files (defaulting to [output_dir] when absent). *)
11
16
12
17
type linked
13
18
Original file line number Diff line number Diff line change @@ -537,7 +537,8 @@ let run libs verbose packages_dir odoc_dir odocl_dir html_dir stats nb_workers
537
537
Eio.Fiber. both
538
538
(fun () ->
539
539
let compiled =
540
- Compile. compile partial ~output_dir: odoc_dir ?linked_dir:odocl_dir all
540
+ Compile. compile ?partial ~output_dir: odoc_dir ?linked_dir:odocl_dir
541
+ all
541
542
in
542
543
let linked = Compile. link compiled in
543
544
let odocl_dir = match odocl_dir with Some l -> l | None -> odoc_dir in
You can’t perform that action at this time.
0 commit comments