package core_kernel
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=34a0288f16027c6b90e4ad16cb5cc677d7063d310faf918748ce70f1745116c0
doc/core_kernel.version_util/Version_util/index.html
Module 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.
module Version : sig ... endval arg_spec : (string * Core.Arg.spec * string) listmodule Application_specific_fields : sig ... endApplication_specific_fields is a single field in the build-info sexp that holds a Sexp.t String.Map.t, which can be chosen by the application to hold custom fields that it needs.
Various additional information about the circumstances of the build: who built it, when, on what machine, etc. build_info is the information as it was generated by the build system. reprint_build_info parses 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 : Core.Sexp.tval reprint_build_info : (Core.Time.t -> Core.Sexp.t) -> stringval build_time : Core.Time.t optionval application_specific_fields : Application_specific_fields.t optionval with_fdo : (string * Core.Md5.t option) optionmodule For_tests : sig ... endIf false, all the variables above are filled in with bogus values. The value is false in tests at the moment.
module Expert : sig ... end