Module Brzo_ocaml_conf

Brzo OCaml domain configuration.

OCaml configuration

include Brzo.Pre_domain.CONF
type t

The type for domain specific configurations.

val tid : t B0_std.Tid.t

tid is a type identifier for the configuration.

val keys : B0_std.String.Set.t

keys is the set of keys that are allowed to be part of the domain specific BRZO file dictionary.

val parse : (B0_serialk_sexp.Sexp.t * B0_serialk_sexp.Sexpq.path) -> (t, string) Stdlib.result

parse is a function that parses the BRZO file domain specific dictionary into a configuration.

val parse_with_cli : ((B0_serialk_sexp.Sexp.t * B0_serialk_sexp.Sexpq.path) -> (t, string) Stdlib.result) Cmdliner.Term.t

parse_with_cli is a cmdliner term that has the command line interface for the configuration and a function that given the configuration s-expression dictionary for the domain should derive the configuration appropriately (basically it should do the job of merging cli and file specified configuration desires).

val pp : t B0_std.Fmt.t

pp formats configurations.

type target = [
| `Byte
| `Html
| `Native
| `Node
]

The type for OCaml compilation targets.

val target_to_string : target -> string

target_to_string t is t as a string token.

val default_target : default_native_if:B00.Tool.t -> B00.Memo.t -> target option -> target
val target : t -> target option
val ocamlpath : t -> B0_std.Fpath.t list
val libs : t -> B0_std.Fpath.t list
val lock_libs : t -> bool