Skip to content

Commit 1a5ef75

Browse files
committed
Add basic documentation for empty interface generation
Signed-off-by: Craig Ferguson <me@craigfe.io>
1 parent daa8cd4 commit 1a5ef75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/dune-files.rst

+8
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ binary at the same place as where ``ocamlc`` was found.
603603
Executables can also be linked as object or shared object files. See
604604
`linking modes`_ for more information.
605605

606+
Starting from dune 2.8, executable modules without interface files (e.g. `.mli`,
607+
`.rei`) are compiled against empty interfaces in order to improve dead code
608+
detection.
609+
606610
``<optional-fields>`` are:
607611

608612
- ``(public_name <public-name>)`` specifies that the executable should be
@@ -1310,6 +1314,10 @@ running dune runtest you can use the following stanza:
13101314
(libraries alcotest mylib)
13111315
(action (run %{test} -e)))
13121316
1317+
Starting from dune 2.8, test modules without interface files (e.g. `.mli`,
1318+
`.rei`) are compiled against empty interfaces in order to improve dead code
1319+
detection.
1320+
13131321
test
13141322
----
13151323

0 commit comments

Comments
 (0)