www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Use my private phobos version in dub project

reply Tobias Pankrath <tobias pankrath.net> writes:
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!
Nov 18 2019
parent Steven Schveighoffer <schveiguy gmail.com> writes:
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
Nov 18 2019