| 1 |
Check that dependencies are not recompiled when this is not necessary. This |
| 2 |
was initially an issue, and was reported by @MackieLoeffel in #5457 (see |
| 3 |
https://github.com/ocaml/dune/pull/5457#issuecomment-1084161587). |
| 4 |
|
| 5 |
$ mkdir dir |
| 6 |
$ cat >dir/bar.v <<EOF |
| 7 |
> From basic Require Import foo. |
| 8 |
> Definition mynum (i : mynat) := 3. |
| 9 |
> EOF |
| 10 |
$ cat >dir/foo.v <<EOF |
| 11 |
> Definition mynat := nat. |
| 12 |
> EOF |
| 13 |
$ cat >dir/dune <<EOF |
| 14 |
> (rocq.theory |
| 15 |
> (name basic)) |
| 16 |
> EOF |
| 17 |
$ cat >dune-project <<EOF |
| 18 |
> (lang dune 3.21) |
| 19 |
> (using rocq 0.11) |
| 20 |
> EOF |
| 21 |
$ dune rocq top --display short --toplevel echo dir/bar.v | ../scrub_coq_args.sh |
| 22 |
rocq dir/.basic.theory.d |
| 23 |
rocq dir/Nbasic_foo.{cmi,cmxs},dir/foo.{glob,vo} |
| 24 |
-topfile $TESTCASE_ROOT/_build/default/dir/bar.v |
| 25 |
-w -deprecated-native-compiler-option -native-output-dir . |
| 26 |
-native-compiler on |
| 27 |
-nI lib/rocq-runtime/kernel |
| 28 |
-nI $TESTCASE_ROOT/_build/default/dir |
| 29 |
-boot |
| 30 |
-R coq/theories Corelib |
| 31 |
-R $TESTCASE_ROOT/_build/default/dir basic |
| 32 |
$ dune rocq top --display short --toplevel echo dir/bar.v | ../scrub_coq_args.sh |
| 33 |
-topfile $TESTCASE_ROOT/_build/default/dir/bar.v |
| 34 |
-w -deprecated-native-compiler-option -native-output-dir . |
| 35 |
-native-compiler on |
| 36 |
-nI lib/rocq-runtime/kernel |
| 37 |
-nI $TESTCASE_ROOT/_build/default/dir |
| 38 |
-boot |
| 39 |
-R coq/theories Corelib |
| 40 |
-R $TESTCASE_ROOT/_build/default/dir basic |
| 41 |
$ dune clean |
| 42 |
$ (cd dir && dune rocq top --root .. --display short --toplevel echo dir/bar.v) | ../scrub_coq_args.sh |
| 43 |
Entering directory '..' |
| 44 |
rocq dir/.basic.theory.d |
| 45 |
rocq dir/Nbasic_foo.{cmi,cmxs},dir/foo.{glob,vo} |
| 46 |
Leaving directory '..' |
| 47 |
-topfile $TESTCASE_ROOT/_build/default/dir/bar.v |
| 48 |
-w -deprecated-native-compiler-option -native-output-dir . |
| 49 |
-native-compiler on |
| 50 |
-nI lib/rocq-runtime/kernel |
| 51 |
-nI $TESTCASE_ROOT/_build/default/dir |
| 52 |
-boot |
| 53 |
-R coq/theories Corelib |
| 54 |
-R $TESTCASE_ROOT/_build/default/dir basic |
| 55 |
$ (cd dir && dune rocq top --root .. --display short --toplevel echo dir/bar.v) | ../scrub_coq_args.sh |
| 56 |
-topfile $TESTCASE_ROOT/_build/default/dir/bar.v |
| 57 |
-w -deprecated-native-compiler-option -native-output-dir . |
| 58 |
-native-compiler on |
| 59 |
-nI lib/rocq-runtime/kernel |
| 60 |
-nI $TESTCASE_ROOT/_build/default/dir |
| 61 |
-boot |
| 62 |
-R coq/theories Corelib |
| 63 |
-R $TESTCASE_ROOT/_build/default/dir basic |
| 64 |
|