Module Unit_info.Artifact

Build artifacts

type t;

Metadata for a single compilation artifact:

  • the module name associated to the artifact
  • the filesystem path
  • the input source file if it exists
let source_file: t => option(filename);

source_file a is the source file of a if it exists.

let prefix: t => file_prefix;

prefix a is the filename prefix of the compilation artifact.

let filename: t => filename;

filename u is the filesystem path for a compilation artifact.

let modname: t => modname;

modname a is the module name of the compilation artifact.

let from_filename: filename => t;

from_filename filename reconstructs the module name modname_from_source filename associated to the artifact filename.