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,3 @@
(alias
(name default)
(action (run ./impl/bin/foo.exe)))

View file

@ -0,0 +1,7 @@
(executable
(name foo)
(libraries impl_wrapped))
(alias
(name default)
(action (run ./foo.exe)))

View file

@ -0,0 +1,8 @@
(library
(name impl)
(public_name impl_wrapped)
(implements vlib_wrapped))
(alias
(name default)
(action (run ./bin/foo.exe)))

View file

@ -0,0 +1 @@
let run () = print_endline "running implementation"

View file

@ -0,0 +1,14 @@
Unwrapped virtual library
$ dune build
Running from vlib_more
running implementation
Unwrapped virtual library
$ dune build @install --root vlib
Entering directory 'vlib'
Leaving directory 'vlib'
$ env OCAMLPATH=vlib/_build/install/default/lib dune build --root impl --debug-dependency-path
Entering directory 'impl'
Running from vlib_more
running implementation
Leaving directory 'impl'

View file

@ -0,0 +1,5 @@
(library
(name vlib)
(public_name vlib_wrapped)
(wrapped false)
(virtual_modules vlib))

View file

@ -0,0 +1,3 @@
let run () =
print_endline "Running from vlib_more";
Vlib.run ()