package stdune
Module Path.BuildSource
a directory is smaller than its descendants
include Comparator.S with type t := t
set_extension path ~ext replaces extension of path by ext
Source
val map_extension :
t ->
f:(Filename.Extension.Or_empty.t -> Filename.Extension.Or_empty.t) ->
tmap_extension path ~f replaces extension of path by f extension
Source.t here is a lie in some cases: consider when the context name happens to be "install" or ".alias".
This function does the same as extract_build_context, but has a "righter" type.
Set the build directory. Can only be called once and must be done before paths are converted to strings elsewhere.