This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
(lang dune 3.17)
|
||||
(using coq 0.10)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(env
|
||||
(_
|
||||
(coq
|
||||
(coqdep_flags (:standard --global-flag1 --global-flag2)))))
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
By default the coqdep flags are empty.
|
||||
|
||||
$ cp theories/dune.noflags theories/dune
|
||||
$ dune build theories/.basic.theory.d
|
||||
|
||||
We use non-exising coqdep flags, so compilation fails.
|
||||
|
||||
$ mv dune.disabled dune
|
||||
$ dune build theories/.basic.theory.d
|
||||
*** Warning: unknown option --global-flag1
|
||||
*** Warning: unknown option --global-flag2
|
||||
|
||||
We then add more flags locally to the theory.
|
||||
|
||||
$ rm -f theories/dune
|
||||
$ cp theories/dune.flags theories/dune
|
||||
$ dune build theories/.basic.theory.d
|
||||
*** Warning: unknown option --global-flag1
|
||||
*** Warning: unknown option --global-flag2
|
||||
*** Warning: unknown option --local-flag1
|
||||
*** Warning: unknown option --local-flag2
|
||||
|
||||
Finally we remove the toplevel dune file which sets some flags, but keep the
|
||||
theory-local flags only.
|
||||
|
||||
$ rm -f dune
|
||||
$ dune build theories/.basic.theory.d
|
||||
*** Warning: unknown option --local-flag1
|
||||
*** Warning: unknown option --local-flag2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
From basic Require Import foo.
|
||||
|
||||
Definition mynum (i : mynat) := 3.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(coq.theory
|
||||
(name basic)
|
||||
(coqdep_flags (:standard --local-flag1 --local-flag2)))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(coq.theory
|
||||
(name basic))
|
||||
|
|
@ -0,0 +1 @@
|
|||
Definition mynat := nat.
|
||||
Loading…
Add table
Add a link
Reference in a new issue