package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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 : Base.String.t

all hg repos and their versions

val version_list : Base.String.t Base.List.t

same as version, but one string per line

module Application_specific_fields : sig ... end

Application_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.

val build_info : Base.String.t

various additional information about the circumstances of the build: who built it, when, on what machine, etc.

val build_info_as_sexp : Sexplib.Sexp.t
val build_date : Date.t Base.Option.t
val build_time : float Base.Option.t
val x_library_inlining : Base.Bool.t
val dynlinkable_code : Base.Bool.t
val compiled_for_speed : Base.Bool.t
val application_specific_fields : Application_specific_fields.t Base.Option.t
val ocaml_version : Base.String.t
val executable_path : Base.String.t

Relative to OMakeroot dir

val build_system : Base.String.t
OCaml

Innovation. Community. Security.