Find out druntime/import and phobos folder on Linux

Anonymouse asdf at asdf.net
Sat Jul 14 19:00:56 UTC 2018


On Saturday, 14 July 2018 at 17:19:20 UTC, Andre Pany wrote:
> Is there a way to find out both paths based on the dmd 
> executable folder?
>
> What I found out so far, these paths are not always correct:
> /usr/include/dmd/druntime/import
> /usr/include/dmd/phobos

Arch Linux and derivatives keep them under 
/usr/include/dlang/{dmd,gdc,ldc}/*

You may have to hardcode some common paths and try them in each 
in turn. I'm happy to be proven wrong here though.


More information about the Digitalmars-d-learn mailing list