| 1 |
By default the coqdep flags are empty. |
| 2 |
|
| 3 |
$ cp theories/dune.noflags theories/dune |
| 4 |
$ dune build theories/.basic.theory.d |
| 5 |
|
| 6 |
We use non-exising coqdep flags, so compilation fails. |
| 7 |
|
| 8 |
$ mv dune.disabled dune |
| 9 |
$ dune build theories/.basic.theory.d |
| 10 |
Warning: Unknown option "--global-flag1". [unknown-option,default] |
| 11 |
Warning: Unknown option "--global-flag2". [unknown-option,default] |
| 12 |
|
| 13 |
We then add more flags locally to the theory. |
| 14 |
|
| 15 |
$ rm -f theories/dune |
| 16 |
$ cp theories/dune.flags theories/dune |
| 17 |
$ dune build theories/.basic.theory.d |
| 18 |
Warning: Unknown option "--global-flag1". [unknown-option,default] |
| 19 |
Warning: Unknown option "--global-flag2". [unknown-option,default] |
| 20 |
Warning: Unknown option "--local-flag1". [unknown-option,default] |
| 21 |
Warning: Unknown option "--local-flag2". [unknown-option,default] |
| 22 |
|
| 23 |
Finally we remove the toplevel dune file which sets some flags, but keep the |
| 24 |
theory-local flags only. |
| 25 |
|
| 26 |
$ rm -f dune |
| 27 |
$ dune build theories/.basic.theory.d |
| 28 |
Warning: Unknown option "--local-flag1". [unknown-option,default] |
| 29 |
Warning: Unknown option "--local-flag2". [unknown-option,default] |