This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
(* make sure everything is linked *)
|
||||
let run = Exe.run
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
(name exe)
|
||||
(wrapped false))
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "this module is unlinkable"
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
(executable
|
||||
(libraries foo)
|
||||
(name exe))
|
||||
|
||||
(alias
|
||||
(name default)
|
||||
(action (run ./exe.exe)))
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(lang dune 1.11)
|
||||
|
||||
(wrapped_executables true)
|
||||
|
||||
(implicit_transitive_deps false)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let () =
|
||||
Foo.run ()
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
(libraries exe)
|
||||
(name foo))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let run () =
|
||||
Exe.run ();
|
||||
Collisionlib.run ()
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
These tests show that (wrapped_executables true) addresses the problem of compilation
|
||||
units of exes colliding with libraries.
|
||||
|
||||
Single module case. Here we technically don't need an alias module
|
||||
|
||||
$ dune build
|
||||
this module is unlinkable
|
||||
this module is unlinkable
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue