B0_driver.ConfSourceDriver configuration.
b0_file_name is "B0.ml" the default B0 file name.
driver_dir_name is ".drivers" the default directory for drivers in the b0 directory.
The type for configurations.
val v :
b0_dir:B0_std.Fpath.t ->
b0_file:B0_std.Fpath.t option ->
cache_dir:B0_std.Fpath.t ->
cwd:B0_std.Fpath.t ->
code:B00_ocaml.Conf.code option ->
hash_fun:(module B0_std.Hash.T) ->
jobs:int ->
log_level:B0_std.Log.level ->
no_pager:bool ->
tty_cap:B0_std.Tty.cap ->
unit ->
tv constructs a configuration with given attributes. See the accessors for semantics.
b0_file is the absolute path to the B0 file (if any).
b0_dir is the absolute path to the b0 directory.
cache_dir is the absolute path to the cache directory.
cwd is the absolute path to the current working directory.
code is the code to which the driver is compiled.
hash_fun is the hash function to use for build caching.
log_level is the desired log level.
memo is the memoizer for the configuration.
tty_cap is the terminal capability to assume for outputs.
get_b0_file provides an error message if b0_file is None.
val setup_with_cli :
b0_dir:B0_std.Fpath.t option ->
b0_file:B0_std.Fpath.t option ->
cache_dir:B0_std.Fpath.t option ->
code:B00_ocaml.Conf.code option ->
hash_fun:(module B0_std.Hash.T) option ->
jobs:int option ->
log_level:B0_std.Log.level option ->
no_pager:bool ->
tty_cap:B0_std.Tty.cap option option ->
unit ->
(t, string) resultsetup_with_cli determines and setups a configuration with the given values. These are expected to have been determined by environment variables and command line arugments.