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,15 @@
Test for https://github.com/ocaml/dune/issues/7893
When using an installed theory with plugins, things should work fine.
$ dune build --root to_install @all
Entering directory 'to_install'
Hello
Leaving directory 'to_install'
$ dune install --root to_install --prefix=$PWD
We now build the normal theory, and should work
$ COQPATH=$PWD/lib/coq/user-contrib dune build --root user @all
Entering directory 'user'
Hello
Leaving directory 'user'

View file

@ -0,0 +1,4 @@
(lang dune 3.8)
(using coq 0.8)
(package (name global))

View file

@ -0,0 +1,3 @@
(library
(name plugin)
(public_name global.plugin))

View file

@ -0,0 +1 @@
let () = Format.eprintf "Hello@\n%!"

View file

@ -0,0 +1 @@
Declare ML Module "plugin:global.plugin".

View file

@ -0,0 +1,4 @@
(coq.theory
(name Bar)
(package global)
(plugins global.plugin))

View file

@ -0,0 +1 @@
From Bar Require Import bar.

View file

@ -0,0 +1,4 @@
(coq.theory
(name Foo)
(package local)
(theories Bar))

View file

@ -0,0 +1,4 @@
(lang dune 3.8)
(using coq 0.8)
(package (name local))