This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
(library
|
||||
(public_name a.lib)
|
||||
(modules a_lib)
|
||||
(name a_lib))
|
||||
|
||||
(executable
|
||||
(libraries a.lib)
|
||||
(modules foo)
|
||||
(public_name foo)
|
||||
(package a))
|
||||
|
||||
(rule (with-stdout-to a_lib.ml (run %{bin:gen})))
|
||||
|
|
@ -0,0 +1 @@
|
|||
A_lib.run ();;
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.1)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
(public_name gen)
|
||||
(package foo))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
print_endline {ocaml|
|
||||
let run () = print_endline "from gen.ml";;
|
||||
|ocaml};;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Make sure that %{bin:..} is populated correctly. That means that install rules
|
||||
must be evaluated before other rules that require substitutions are loaded.
|
||||
|
||||
$ dune exec ./a/foo.exe
|
||||
from gen.ml
|
||||
Loading…
Add table
Add a link
Reference in a new issue