-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coq] Allow Coq libraries to depend on ML plugins.
We add a new field `(libraries <ocaml_libraries>)` to the `coqlib` stanza for specifying dependencies on OCaml libs, such as plugins. The current implementation has to workaround a couple of `coqdep` problem: - `-I` flags to `coqdep` must refer to the build tree as to find the `.cmxs` file, this is different from what OCaml needs; - `coqdep` needs to find the `foo.mlpack` file as to emit the correct `cmxs` dependency. However such file won't be available for system-installed plugins. We solve the first one by manually computing the include flags, and the second one by adding a conditional dependency so we don't fail if the file is missing. We should improve `coqdep` so these kind of hacks are not necessary. Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
- Loading branch information
Showing
13 changed files
with
234 additions
and
171 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
Oops, something went wrong.