gdc phobos and druntime automatic import

Benjamin Thaut code at benjamin-thaut.de
Fri Mar 15 06:05:56 PDT 2013


Am 15.03.2013 13:26, schrieb Iain Buclaw:
> On 15 March 2013 12:01, Benjamin Thaut <code at benjamin-thaut.de
> <mailto:code at benjamin-thaut.de>> wrote:
>
>
>     Well I don't want to overwrite the existing version of druntime and
>     phobos. I want to be ablte to specifiy via a compiler option to use
>     a different version of them. In some projects I use the original
>     druntime + phobos and in other projects I use my custom version.
>     With dmd this is possible via a custom sc.ini file. So is there a
>     option to just remove druntime/phobos from LIBRARY_PATH? (and keep
>     everything else)
>
>     Kind Regards
>     Benjamin Thaut
>
>
> You didn't seem to read my first message. :)
>
> On 15 March 2013 10:03, Iain Buclaw <ibuclaw at ubuntu.com
> <mailto:ibuclaw at ubuntu.com>
> <mailto:ibuclaw at ubuntu.com <mailto:ibuclaw at ubuntu.com>>> wrote:
>
>      The library is installed in /usr/lib,  which is part of the
>      LIBRARY_PATH.   The static library itself is a combination of
>      druntime and phobos together, not separate at the moment.  To
>      specify a different standard library, use -defaultlib switch.
>
>
>
> --
> Iain Buclaw
>
> *(p < e ? p++ : p) = (c & 0x0f) + '0';

I don't fully understand that statement.
So the -defaultlib switch gives the location for the import files .di/.d 
and not for the actual library (.a) ?

Kind Regards
Benjamin Thaut


More information about the D.gnu mailing list