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,8 @@
(alias
(name message)
(deps .link_deps.eobjs/.byte_objs/link_deps.cmo)
(action (echo "link\n")))
(executable
(name link_deps)
(link_deps (alias message)))

View file

@ -0,0 +1 @@
(lang dune 1.0)

View file

@ -0,0 +1,11 @@
It is possible to add link-time dependencies.
In particular, these can depend on the result of the compilation (like a .cmo
file) and be created just before linking.
$ dune build link_deps.exe
File "dune", line 7, characters 7-16:
7 | (name link_deps)
^^^^^^^^^
Error: No rule found for .link_deps.eobjs/.byte_objs/link_deps.cmo
[1]