Source file build_info.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module V1 = struct
module Version = struct
type t = string
let to_string x = x
end
module Statically_linked_library = struct
type t = string * string option
let name = fst
let version = snd
end
module Statically_linked_libraries = struct
let to_list () = Build_info_data.statically_linked_libraries
let find ~name =
match List.assoc name (to_list ()) with
| exception Not_found -> None
| version -> Some (name, version)
;;
end
let version () = Build_info_data.version
end