GDC: how to link with alternate version of Phobos?

Jonathan M Davis jmdavisProg at gmx.com
Thu Feb 23 20:21:20 PST 2012


On Thursday, February 23, 2012 20:21:57 H. S. Teoh wrote:
> I'm trying to test if a bug has been fixed in the latest Phobos git
> repository, but I'm having trouble convincing gdc to *not* use the
> default installation of Phobos. What option do I need on the commandline
> to tell it to use a different path to Phobos? -I only appends include
> paths *after* the default paths, so it'll always pick up the default
> installation first (plus it will cause import conflicts since there will
> be two modules claiming to be std.stdio).

With dmd, you'd change dmd.conf, but I don't know if GDC has anything similar. 
I would have thought so though, because otherwise it would have to hardcode 
the paths and linker options for Phobos. But maybe it does hardcode them. I 
don't know.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list