This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -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})))

View file

@ -0,0 +1,3 @@
(executable
(public_name gen)
(package foo))

View file

@ -0,0 +1,3 @@
print_endline {ocaml|
let run () = print_endline "from gen.ml";;
|ocaml};;

View file

@ -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