Skip to content

Commit

Permalink
Bump dune lang version to 2.9
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Ferguson <[email protected]>
  • Loading branch information
craigfe committed Feb 2, 2021
1 parent 8cec276 commit 6106c36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/dune-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ By default, executables defined via ``(executables(s) ...)`` or ``(test(s)
common to give them empty interface files to strengthen the compiler's ability
to detect unused values in these modules.

Starting from dune 2.8, an option is available to automatically generate empty
Starting from dune 2.9, an option is available to automatically generate empty
interface files for executables and tests that don't already have them:

.. code:: scheme
Expand Down Expand Up @@ -651,7 +651,7 @@ binary at the same place as where ``ocamlc`` was found.
Executables can also be linked as object or shared object files. See
`linking modes`_ for more information.

Starting from dune 2.8, it's possible to automatically generate empty interface
Starting from dune 2.9, it's possible to automatically generate empty interface
files for executables. See `executables_implicit_empty_intf`_.

``<optional-fields>`` are:
Expand Down Expand Up @@ -1365,7 +1365,7 @@ running dune runtest you can use the following stanza:
(libraries alcotest mylib)
(action (run %{test} -e)))
Starting from dune 2.8, it's possible to automatically generate empty interface
Starting from dune 2.9, it's possible to automatically generate empty interface
files for test executables. See `executables_implicit_empty_intf`_.

test
Expand Down
2 changes: 1 addition & 1 deletion src/dune_engine/dune_project.ml
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ let parse ~dir ~lang ~opam_packages ~file ~dir_status =
loc lang.syntax (2, 8) ~what:"This field"
and+ executables_implicit_empty_intf =
field_o_b "executables_implicit_empty_intf"
~check:(Dune_lang.Syntax.since Stanza.syntax (2, 8))
~check:(Dune_lang.Syntax.since Stanza.syntax (2, 9))
and+ () = Dune_lang.Versioned_file.no_more_lang
and+ generate_opam_files =
field_o_b "generate_opam_files"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Executables with no corresponding `.mli` file will have one generated for them
by Dune:

$ cat >dune-project <<EOF
> (lang dune 2.8)
> (lang dune 2.9)
> (executables_implicit_empty_intf true)
> EOF

Expand Down Expand Up @@ -39,7 +39,7 @@ If an executable already has an interface, it is preserved:
Generation of empty `.mli` files is disabled by default prior to lang 3.0:

$ dune clean
$ echo >dune-project "(lang dune 2.8)"
$ echo >dune-project "(lang dune 2.9)"
$ dune build ./bin/executable.exe
$ dune runtest
$ test ! -f _build/default/bin/executable.mli
Expand Down

0 comments on commit 6106c36

Please sign in to comment.