Skip to content

Commit

Permalink
Document this feature
Browse files Browse the repository at this point in the history
Closes #205

Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon committed Oct 24, 2018
1 parent b9ff8bc commit 5479f2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/dune-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -788,8 +788,13 @@ The first form ``(<profile> <settings>)`` that correspond to the
selected build profile will be used to modify the environment in this
directory. You can use ``_`` to match any build profile.

Currently ``<settings>`` can be any OCaml flags field, see `OCaml
flags`_ for more details.
Fields supported in ``<settings>`` are:

- any OCaml flags field, see `OCaml flags`_ for more details.
- ``(env-vars (<var1> <val1>) .. (<varN> <valN>))``. This will add the
corresponding variables to the environment in which the build commands are
executed, and under which ``dune exec`` runs. At the moment, this mechanism is
only supported in ``dune-workspace`` files.

.. _dune-ignored_subdirs:

Expand Down

0 comments on commit 5479f2e

Please sign in to comment.