ldc and gdc

Marco Leise Marco.Leise at gmx.de
Thu Aug 4 13:37:13 PDT 2011


Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis <jmdavisProg at gmx.com>:

>> 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


More information about the Digitalmars-d mailing list