-
Notifications
You must be signed in to change notification settings - Fork 81
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
MPR#5101: Feature wish: ocamlbuild should track digests of external dependencies #221
Comments
This is hard, and related to #147, and we should try to solve both issues. |
This is in direct conflict with #211 isn't it? |
Did you mean to comment on the use-ocamlfind-by-default issue? |
No, the link is right. |
If anything, this issue is an inconvenience, but #211 looks like a necessity (though it would be curious to see a project where calling ocamlfind query once for every dependency causes a huge slowdown) |
Is there a flag or something that I can set to get ocamlbuild to relink every time I invoke the build command (even if there is no change to the source)? I'm running into this exact issue |
If you just want to redo the linking step, removing the linked binary before building should be enough. In the general case where an external dependency changed under your feet, you need to redo some recompilation as well because the interfaces may have changed, etc. Then I don't know of a better solution than just running |
PR transferred from https://caml.inria.fr/mantis/view.php?id=5101
[original reporter: @ygrek]
Consider: the main program gets built and linked with external library version 1, then library is upgraded to version 2, program gets bult again but as no source changes occured (all digests are the same) ocamlbuild will not relink the final executable with the new library version. The same applies to all external dependencies : cmi, cmo, etc..
The text was updated successfully, but these errors were encountered: