Skip to content

Commit

Permalink
Rework intro
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon committed Jul 15, 2024
1 parent 713a39d commit fdbcc86
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/reference/foreign-archives.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Foreign Archives
----------------

You can also specify archives of separately compiled foreign object files
that need to be packaged with an OCaml library or linked into an OCaml
executable. To do that, use the ``foreign_archives`` field of the
corresponding ``library`` or ``executable`` stanza. For example:
Foreign archives are a way to link archives that are separately compiled.

They are particularly useful when embedding a library written in a foreign
language and/or built with another build system. See :ref:`foreign-sandboxing`
for more details.

To use this feature, use the ``foreign_archives`` field of the corresponding
``library`` or ``executable`` stanza. For example:

.. code:: dune
Expand Down Expand Up @@ -43,7 +47,3 @@ to the same archive name from multiple OCaml libraries and executables, so a
foreign archive is a bit like a foreign library, hence the name of the stanza.
The ``enabled_if`` field has the same meaning as in the :doc:`dune/library`
stanza.

Foreign archives are particularly useful when embedding a library written in
a foreign language and/or built with another build system. See
:ref:`foreign-sandboxing` for more details.

0 comments on commit fdbcc86

Please sign in to comment.