You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding extracted_files field to rocq.extraction stanza (#13997)
This PR adds an `extracted_files` field to the `rocq.extraction` stanza.
In particular, this field is used to specify files that should be
produced by extraction *other than* those purely meant for OCaml
extraction (the current `extracted_modules` field behavior).
The primary motivation for this is the following behavior: given a Rocq
extraction prelude `X.v` that extracts to Haskell and produces a file
`X.hs`, a single `dune build` will produce this file, but subsequent
`dune build` will wipe the `X.hs` from `_build/...`.
This behavior is mitigated by this PR and specifically witnessed by the
`Test rebuild does not clean extracted files:` test in
`test/blackbox-tests/test-cases/rocq/extraction/extracted-files.t`
---------
It is my belief that the `extracted_files` stanza could subsume
`extracted_modules`: `(extracted_modules F1 ... FN) --> (extracted_files
F1.ml F1.mli ... FN.ml FN.mli)`, however for compatibility I did not do
this, although maybe it is worth discussing.
0 commit comments