Is there a way to adjust lookup paths for modules during compilation?
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Jul 31 20:16:01 UTC 2019
On Wed, Jul 31, 2019 at 08:09:29PM +0000, Andrey Zherikov via Digitalmars-d-learn wrote:
> I found a function that seems could be used for adding import paths:
> dmd.frontend.addImport
> (https://dlang.org/phobos/dmd_frontend.html#.addImport). But it's not clear
> how can I use it: dmd directory is not added to lookup by default and trying
> adding it gives errors:
[...]
That's because you can only call that function from inside dmd code.
It's not available for user code to call.
T
--
Those who don't understand Unix are condemned to reinvent it, poorly.
More information about the Digitalmars-d-learn
mailing list