<div dir="ltr"><div>I've attached a reduced use case showing that the solutions proposed in this thread do not work, and wrote a local modification to dmd to allow a flagĀ -exclude_cwd_from_imports that does work. Would that be acceptable to have this in official dmd?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 19, 2015 at 8:07 PM, Timothee Cour <span dir="ltr"><<a href="mailto:thelastmammoth@gmail.com" target="_blank">thelastmammoth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><a href="https://issues.dlang.org/show_bug.cgi?id=14811" target="_blank">https://issues.dlang.org/show_bug.cgi?id=14811</a><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 3:22 AM, Liran Zvibel via Digitalmars-d-learn <span dir="ltr"><<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Monday, 8 June 2015 at 04:08:55 UTC, Adam D. Ruppe wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The easiest way is to not use search paths, and instead pass all the modules you want compiled to the compiler directly. Then it will look for the module name declaration instead of the directory/filename layout.<br>
</blockquote>
<br></span>
I think that this should be an explicit decision to also add -I. to the compilation or not.<br>
<br>
We (at Weka.IO) have to work extra hard to work around it, and since we have a large project with many packages it's impractical to just put everything on the command line.<br>
<br>
Also -- you WANT imported modules to be imported (and use the .di equivalent) instead of being compiled on the command line.<br>
<br>
A solution that won't break backwards compatibility and will still make sense is have this by default in dmd.conf, and when/if required dmd users can just modify their dmd.conf file.<br>
<br>
Liran<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>