jon.recoil.org

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

original_source_file a is the original source file of a if it exists. See Unit_info.original_source_file for a description of the distinction of "original" vs "raw" source file

raw_source_file a is the raw source file of a if it exists. See Unit_info.raw_source_file for a description of the distinction of "original" vs "raw" source file

prefix a is the filename prefix of the compilation artifact.

filename u is the filesystem path for a compilation artifact.

modname a is the module name of the compilation artifact.

from_filename ~for_pack_prefix filename reconstructs the module name modname_from_source filename associated to the artifact filename, assuming the pack prefix is for_pack_prefix.