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 @@
(lang dune 1.0)

View file

@ -0,0 +1,6 @@
(library
(name foobar_impl)
(wrapped false)
(public_name foobar.impl))
(rule (copy# %{lib:foobar:foobar.mli} foobar.mli))

View file

@ -0,0 +1 @@
let foo = "testing"

View file

@ -0,0 +1,4 @@
(library
(name foobar)
(modules_without_implementation foobar)
(public_name foobar))

View file

@ -0,0 +1,9 @@
Regression test for installing mli only modules. Previously, the install step
would fail because the .cmi wasn't correctly copied to the _build/install dir.
$ dune build @install
$ dune runtest
testing
$ dune install --prefix ./installed --display short 2>&1 | grep -i cmi
Installing installed/lib/foobar/foobar.cmi
Installing installed/lib/foobar/impl/foobar.cmi

View file

@ -0,0 +1,3 @@
(test
(name test)
(libraries foobar.impl))

View file

@ -0,0 +1 @@
let () = print_endline "testing"