File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,13 @@ let of_libs libs =
316
316
:: acc)
317
317
odoc_pages []
318
318
in
319
+ let update_mlds mlds libraries =
320
+ List. map
321
+ (fun mld ->
322
+ let mld_deps = List. map (fun l -> l.odoc_dir) libraries in
323
+ { mld with mld_deps })
324
+ mlds
325
+ in
319
326
Fpath.Map. fold
320
327
(fun dir archives acc ->
321
328
match Fpath.Map. find dir rmap with
@@ -342,11 +349,16 @@ let of_libs libs =
342
349
m " %d mlds for package %s (from %d odoc_pages)" (List. length mlds)
343
350
pkg.name
344
351
(Fpath.Set. cardinal odoc_pages));
345
-
346
352
Util.StringMap. update pkg.name
347
353
(function
348
354
| Some pkg ->
349
- Some { pkg with libraries = libraries @ pkg.libraries }
355
+ let libraries = libraries @ pkg.libraries in
356
+ Some
357
+ {
358
+ pkg with
359
+ libraries;
360
+ mlds = update_mlds pkg.mlds libraries;
361
+ }
350
362
| None ->
351
363
Some
352
364
{
You can’t perform that action at this time.
0 commit comments