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
Use compilerlibs instead of explicit lists of modules from the compiler #6195
Comments
Comment author: @xavierleroy Good idea. Any takers? |
Comment author: @alainfrisch ocamldoc: done. Note that it is compiled with -linkall (not sure why), so linking against ocamlcommon.cma includes some unused modules (mostly, the type-checker). I think we don't care. |
Comment author: @xavierleroy
Because ocamldoc can dynamically load plugins, I think. (Hence all stdlib modules and all ocamldoc modules must be linked in.) |
Comment author: @zoggy Exactly. |
Comment author: @alainfrisch Note that ocamldoc modules are explicitly included (as opposed to linking odoc_info.cma + other modules). Point taken for the stdlib. This makes me wonder whether we should have a way to force including an entire library (i.e. -linkall restricted to a single library). |
Comment author: @alainfrisch read_cmt: done in commit 16417. |
Comment author: @alainfrisch This is about ongoing internal cleanup, not something blocking for 4.03. |
If I'm not mistaken, only ocamldebug remains to be cleaned up? |
I think |
Looking at |
|
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Original bug ID: 6195
Reporter: @alainfrisch
Status: confirmed (set by @xavierleroy on 2013-10-03T12:26:00Z)
Resolution: open
Priority: normal
Severity: feature
Target version: later
Category: configure and build/install
Bug description
Some tools which are part of the standard distribution (ocamldoc, ocamldebug, read_cmt, objinfo) embed some modules from the compiler. Instead of listing required modules explicitly, we could link against ocamlcommon.cma (and ocamlbytecomp.cma, if needed). This would simplify the Makefiles and make them more robust w.r.t. modifications of dependencies within compiler modules.
The text was updated successfully, but these errors were encountered: