Skip to content

Commit dfefbcc

Browse files
Julowjonludlam
authored andcommitted
driver.mld: Fix Mdx error hidden by Dune error
As the driver reports errors with promotion and not with an exit status, the driver could fail to generate `driver-benchmarks.json`, in which case Dune would complain about the missing target and would not show the diff containing the error.
1 parent 036ba73 commit dfefbcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
(glob_files library_mlds/*)
3838
(glob_files examples/*.ml*))
3939
(action
40-
(run ocaml-mdx-test --force-output %{dep:driver.mld})))
40+
(progn
41+
(write-file driver-benchmarks.json "")
42+
(run ocaml-mdx-test --force-output %{dep:driver.mld}))))
4143

4244
(rule
4345
(alias docgen)

0 commit comments

Comments
 (0)