Module Core_kernel.Version_util
This module gives access to the same version/build information returned by Command-based executables when called with the -version or -build-info flags by $0 version (-build-info | -version) or $0 (-build-info | -version).
Here's how it works: we arrange for the build system to, at link time, include an object file that defines symbols that version_util.ml uses to get the strings that contain the information that this module provides. When building with OMake, our OMakeroot runs build_info.sh to generate *.build_info.c with the symbols and that is linked in.
val version : Core_kernel__.Import.stringall hg repos and their versions
val version_list : Core_kernel__.Import.string Core_kernel__.Import.listsame as
version, but one string per line
module Version : sig ... endVersionmay be used to parse a single entry fromversion_list.
val arg_spec : (Core_kernel__.Import.string * Core_kernel__.Arg.spec * Core_kernel__.Import.string) Core_kernel__.Import.list
module Application_specific_fields : sig ... endApplication_specific_fieldsis a single field in the build-info sexp that holds aSexp.t String.Map.t, which can be chosen by the application to hold custom fields that it needs.
val build_info : Core_kernel__.Import.stringVarious additional information about the circumstances of the build: who built it, when, on what machine, etc.
build_infois the information as it was generated by the build system.reprint_build_infoparses and prints the string back, which alters a bit the layout and order of the fields but more importantly allows to display times in the current zone.
val build_info_as_sexp : Sexp.tval reprint_build_info : (Core_kernel__.Time_float.t -> Sexp.t) -> Core_kernel__.Import.stringval username : Core_kernel__.Import.string Core_kernel__.Import.optionval hostname : Core_kernel__.Import.string Core_kernel__.Import.optionval kernel : Core_kernel__.Import.string Core_kernel__.Import.optionval build_time : Core_kernel__.Time_float.t Core_kernel__.Import.optionval x_library_inlining : Core_kernel__.Import.boolval portable_int63 : Core_kernel__.Import.boolval dynlinkable_code : Core_kernel__.Import.boolval compiled_for_speed : Core_kernel__.Import.boolval application_specific_fields : Application_specific_fields.t Core_kernel__.Import.optionval ocaml_version : Core_kernel__.Import.stringval allowed_projections : Core_kernel__.Import.string Core_kernel__.Import.list Core_kernel__.Import.optionval executable_path : Core_kernel__.Import.stringRelative to OMakeroot dir
val build_system : Core_kernel__.Import.string