package dune

  1. Overview
  2. Docs
Fast, portable and opinionated build system

Install

Dune Dependency

Authors

Maintainers

Sources

dune-build-info-1.11.4.tbz
sha256=77cb5f483221b266ded2b85fc84173ae0089a25134a086be922e82c131456ce6
sha512=02f00fd872aa49b832fc8c1e928409f23c79ddf84a53009a58875f222cca36fbb92c905e12c539caec9cbad723f195a8aa24218382dca35a903b3f52b11f06f2

doc/dune.configurator/Configurator/V1/index.html

Module Configurator.V1

type t
val create : ?dest_dir:string -> ?ocamlc:string -> ?log:(string -> unit) -> string -> t
val ocaml_config_var : t -> string -> string option

Return the value associated to a variable in the output of ocamlc -config

val ocaml_config_var_exn : t -> string -> string
val c_test : t -> ?c_flags:string list -> ?link_flags:string list -> string -> bool

c_test t ?c_flags ?link_flags c_code try to compile and link the C code given in c_code. Return whether compilation was successful.

module C_define : sig ... end
module Pkg_config : sig ... end
module Flags : sig ... end
val which : t -> string -> string option

which t prog seek prog in the PATH and return the name of the program prefixed with the first path where it is found. Return None the the program is not found.

module Process : sig ... end

Execute external programs.

val main : ?args:(Arg.key * Arg.spec * Arg.doc) list -> name:string -> (t -> unit) -> unit

Typical entry point for configurator programs

val die : ('a, unit, string, 'b) format4 -> 'a

Abort execution. If raised from within main, the argument of die is printed as Error: <message>.

OCaml

Innovation. Community. Security.