exclude current directory from search path in dmd ?

Timothee Cour via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 15 19:26:25 PDT 2015


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/20150315/007a1914/attachment.html>


More information about the Digitalmars-d-learn mailing list