On 2011-08-04 22:37, Marco Leise wrote:
Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis <[email protected]>:

By the way... the druntime and phobos patches for LDC - are they
applicable to GDC and DMD as well? I'm asking because I could imagine
installing druntime, phobos, DMD, GDC and LDC and all three compilers
would use the same installation of the standard library.

They _can't_ all use the same installations. At minimum, druntime must be
different for each of them. That's expected and by design. Whether Phobos
needs to be different for each or not as far as source goes, I don't know
(hopefully not, but there might be a reason why it has to). But since the
compiled library includes both druntime and Phobos, that can't be shared.

- Jonathan M Davis

Thank you for the clarification. My impression was that druntime was
created to make it possible to use either phobos or tango. If the
compiled library includes both (with which compiler anyway? both GDC and
LDC?) I figure that I could not install any two of the three compilers
in their default locations on Linux, correct? If I take the time to
create packages for Gentoo for the alternative compilers that is good to
know. Symlinks and altered library names for druntime/phobos would be
required. But with a mix of DMD1, DMD2, GDC, LDC, Phobos and Tango
things could become messy :p

In the future, DVM could be used for this. DVM lets you easily install different versions of a D compiler and switch among them. Although it currently only supports DMD. DVM: https://bitbucket.org/doob/dvm

--
/Jacob Carlborg

Reply via email to