exclude current directory from search path in dmd ?

Timothee Cour via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 7 21:07:29 PDT 2015


ping?

On Sun, Mar 15, 2015 at 10:26 PM, Timothee Cour <thelastmammoth at gmail.com>
wrote:

> Is there a way to exclude current directory from search path in dmd, so
> that the search path is only given by '-I' arguments (+ones from dmd.conf)?
>
> use case:
>
> files:
> /base/foo.d
> /base/bar/foo.d
> /base/bar/main.d #contains: import foo.d
>
> cd /base/bar
> dmd -I/base main.d
> => I want 'import  foo.d' to point to /base/foo.d, not /base/bar/foo.d,
> but this is not the case since -I. is implicit in search path
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150608/a96632fe/attachment.html>


More information about the Digitalmars-d-learn mailing list