November 18, 2019
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!


November 18, 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