OCaml Flags¶
In library
, executable
, executables
, and env
stanzas,
you can specify OCaml compilation flags using the following fields:
(flags <flags>)
to specify flags passed to bothocamlc
andocamlopt
(ocamlc_flags <flags>)
to specify flags passed toocamlc
only(ocamlopt_flags <flags>)
to specify flags passed toocamlopt
only
For all these fields, <flags>
is specified in the
Ordered Set Language.
These fields all support (:include ...)
forms.
The default value for (flags ...)
is taken from the environment,
as a result it’s recommended to write (flags ...)
fields as
follows:
(flags (:standard <my options>))