forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coq] Ignore contents in coqdep rule
This should help reduce the coqdep calls drastically. Improves ocaml#5100 . Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
- Loading branch information
Showing
8 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Definition foo := 3. |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/coqdep-on-rebuild.t/a/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(coq.theory | ||
(name a) | ||
(package csimple)) |
Empty file.
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/coqdep-on-rebuild.t/dune-project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(lang dune 2.5) | ||
|
||
(using coq 0.2) |
30 changes: 30 additions & 0 deletions
30
test/blackbox-tests/test-cases/coq/coqdep-on-rebuild.t/run.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
$ mkdir b | ||
$ cat > b/dune <<EOF | ||
> (coq.theory | ||
> (name b) | ||
> (theories a) | ||
> (package csimple)) | ||
> EOF | ||
$ cat > b/b.v <<EOF | ||
> From a Require Import a. | ||
> Definition bar := a.foo. | ||
> EOF | ||
$ cat > b/d.v <<EOF | ||
> From a Require Import a. | ||
> Definition doo := a.foo. | ||
> EOF | ||
$ dune build --display short --debug-dependency-path | ||
coqdep a/a.v.d | ||
coqdep b/b.v.d | ||
coqdep b/d.v.d | ||
coqc a/.a.aux,a/a.{glob,vo} | ||
coqc b/.b.aux,b/b.{glob,vo} | ||
coqc b/.d.aux,b/d.{glob,vo} | ||
$ cat > b/b.v <<EOF | ||
> From a Require Import a. | ||
> Definition bar := a.foo. | ||
> Definition zoo := 4. | ||
> EOF | ||
$ dune build --display short --debug-dependency-path | ||
coqdep b/b.v.d | ||
coqc b/.b.aux,b/b.{glob,vo} |
This file was deleted.
Oops, something went wrong.