Skip to content

Commit

Permalink
test: demonstrate the same issue if preprocessing is added on the
Browse files Browse the repository at this point in the history
library

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
  • Loading branch information
anmonteiro committed Mar 22, 2024
1 parent 1fa5da7 commit 5791466
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,22 @@ file after any dialects have run
> EOF
$ dune build @mel

Now try preprocessing too

$ dune clean
$ cat > lib/dune <<EOF
> (library
> (name foo)
> (preprocess (action (run cat %{input-file})))
> (modes melange))
> EOF
$ dune build @mel
Error: ocamldep returned unexpected output for _build/default/lib/bar.ml:
> lib/bar.pp.ml:
-> required by _build/default/output/lib/bar.js
-> required by alias mel
Error: ocamldep returned unexpected output for _build/default/lib/foo.myd.ml:
> lib/foo.pp.myd.ml: Bar
-> required by _build/default/output/lib/foo.js
-> required by alias mel
[1]

0 comments on commit 5791466

Please sign in to comment.