Use my private phobos version in dub project

Steven Schveighoffer schveiguy at gmail.com
Mon Nov 18 18:27:24 UTC 2019


On 11/18/19 12:46 PM, Tobias Pankrath wrote:
> Hi,
> 
> I wanted to hack a bit on phobos and wondered what the best way is to 
> use my own version in a project managed by dub.
> 
> I have used the dlang/tools/setup.sh and got ../d/dmd, .../d/phobos/ 
> ../d/druntime etc. Now I want to hack on phobos and use that version in 
> a project of mine to test the changes. What's the best way to do this? 
> I've searched the wiki, but didn't find anything useful.
> 
> Thanks!

Dub uses the standard library provided by your compiler, it doesn't 
download it from the repository.

You need to edit your dmd.conf or dmd.ini file (depending on what 
platform you are on) to point at your version of the library.

I recommend making a separate directory with the conf you want, and 
copying or syslinking the compiler there.

-Steve



More information about the Digitalmars-d-learn mailing list