Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order of libraries #174

Open
joprice opened this issue Dec 24, 2021 · 0 comments
Open

order of libraries #174

joprice opened this issue Dec 24, 2021 · 0 comments

Comments

@joprice
Copy link
Contributor

joprice commented Dec 24, 2021

I am trying to use the dune-libraries property under [fields] to handle an issue where netsys is missing a dependency on threads:

ocaml/dune#1024
https://gitlab.com/gerdstolpmann/lib-ocamlnet3/-/issues/14

I added threads to package.toml:

 [fields]
 dune-libraries = "threads"

but it ends up at the end of the list of dependencies, whereas I need it to show up before netsys. Editing the dune file to move it to the front of the list fixes this. Is there any way to work around this? Perhaps the packages could contain be objects that can contain a list of extra dependencies, which would then be used to topologically sort the libraries?

[[fields.dune-libraries.netsys]]
extra-deps = ["threads"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant