-
Notifications
You must be signed in to change notification settings - Fork 361
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
Share the compilation/installation of ocaml compilers between aliases #107
Comments
would be good if the compiler files could be cached too. right now a fresh switch requires a net connection. |
(can you tell I'm working on trains quite a lot :-) |
wrong issue number in the commit previous commit ... |
Is this issue on the cards for 2.0? This recompilation thing is very annoying. Is there anything particularly hard about this or it's just low priority? I would very much like to have this so I wouldn't putting in some elbow grease if this feature is feasible. |
I'd also really like this, although I can't commit to putting in any time on it. |
This not getting updates is mostly because of issues with relocating the ocaml compiler itself. Otherwise, with the 2.0 layout of compilers as packages, we could imagine having If this works, we could even detect on I don't know where exactly we stand on OCaml relocation. Setting always the proper environment variables in the ocaml packages, to make sure the right paths are used, may help, but note that on unix, the bytecode compilers, e.g. Another option could be to compile different versions of OCaml in separate directories and keep them isolated from the actual switches, that would use them like is done for "system" compilers. This sounds a bit tedious to maintain though. |
Would it be possible to treat an opam installed switch as a system switch? This could at least allow sharing the compiler itself across switches without requiring an external-to-opam compiler installation. |
Superseded by #629 |
Currently, we download/compile/install a fresh OCaml compiler for each alias (when the compiler is different of
system
).A very good optimization would be to do that once for compiler, and add the right path in
$PATH
for each alias.The text was updated successfully, but these errors were encountered: