Skip to content

Commit b9da252

Browse files
craigfergrinberg
authored andcommitted
Add a reproduction case for issue ocaml#4682
Signed-off-by: Craig Ferguson <me@craigfe.io>
1 parent 7310d10 commit b9da252

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(executable
2+
(name main)
3+
(root_module root)
4+
(libraries unix)
5+
(preprocess (pps ppx)))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module X = Root.Unix
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(library
2+
(name ppx)
3+
(kind ppx_rewriter)
4+
(libraries lib)
5+
(ppx.driver (main Ppx.main)))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let main () = ()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
val main : unit -> unit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Attempting to use `(root_module ...)` with an executable that uses PPX results
2+
in an unexpected build failure:
3+
4+
$ dune build
5+
Error: Multiple rules generated for _build/default/root.pp.ml-gen:
6+
- dune:5
7+
- <none>:1
8+
[1]

0 commit comments

Comments
 (0)