B00_ocaml.ConfSourceToolchain configuration.
This module provides access to the OCaml toolchain configuration as output by ocaml{c,opt} -config.
The type for code generated by the OCaml compiler. Either bytecode or native-code.
The type for the OCaml toolchain configuration.
of_string ~file data parses toolchain configuration from data as output by the compiler's -config option assuming it was read from file file (defaults to B0_std.Fpath.dash).
write m ~o writes the toolchain configuration to o by running comp with -config.
read m file reads a toolchain configuration from file.
find f c looks up the field f in configuration c. See ocamlc -config for the list of fields.
version c is the compiler version string "major.minor[.patchlevel][+additional-info]" parsed using (major, minor, patch, additional-info). If patch-level is absent it is turned into a 0.
where c is the location of OCaml's library directory.
asm_ext is the file extension for assembly files.
dll_ext is the file extension for C dynamic libraries.
ext_ext is the file extension for executable binaries.
ext_lib is the file extension for C static libraries.
obj_ext is the file extension for C object files.
has_dynlink determines whether the platform supports dynamic linking.
to_string_map c are the fields of c as a string map.
of_string_map m is a configuration from string map m. m needs at least on key for each parsed field above otherwise the function errors.