package b0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dba2fc571f39f3b8e87ee55c77bdec7ec6a5ddc7d99b8b20aeda848af546be04
md5=51ee1d66acc4d7f87bdceac1341b7711
doc/b00_kit/B00_ocaml/Mod_src/Deps/index.html
Module Mod_src.Deps
Source dependencies.
val write :
?src_root:B00_std.Fpath.t ->
B00.Memo.t ->
srcs:B00_std.Fpath.t list ->
o:B00_std.Fpath.t ->
unit
write m ~src_root ~srcs ~o
writes dependencies of srcs
in file o
. If src_root
if specified it is used as the cwd
for the operation and assumed to be a prefix of every file in srcs
, this allows the output not to the depend on absolute paths.
UPSTREAM FIXME. We don't actually do what is mentioned about src_root
. The problem is that the path of parse errors end up being wrongly reported. It would be nice to add an option for output prefix trimming to the tool and/or control on the whole toolchain for how errors are reported. This means that for now we cannot cache these operations across machines.
val read :
?src_root:B00_std.Fpath.t ->
B00.Memo.t ->
B00_std.Fpath.t ->
Mod_name.Set.t B00_std.Fpath.Map.t B00.Memo.fiber
read ~src_root depsfile
reads dependencies produced by write
as a map from absolute file paths to their dependencies. Relative file paths are made absolute using src_root
(defaults to Current working directory (cwd)).