Re: Setting import paths - project (dub) and also rdmd or dmd

2022-10-01 Thread David via Digitalmars-d-learn
Thank you Steven and Christian. I had a look at both those methods, creating a local dmd.conf file almost worked but it wasn't a simple modification, I was hoping it would be as simple as just adding the extra path but it seems that I needed to add the whole path from the existing dmd.conf

Re: Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread Christian Köstlin via Digitalmars-d-learn
On 19.09.22 16:24, David wrote: Hi, New to D (and enjoying the learning..) I've probably missed something obvious but I'm slightly confused with the best way to achieve a simple build. I like to keep my reusable modules in a directory outside of the project directory so I can use them on

Re: Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/19/22 10:24 AM, David wrote: TLDR: How do I automatically specify the -I to the compilers so I don't need to specify it manually each time ? For dmd, dmd.conf: https://dlang.org/dmd-osx.html#dmd-conf I believe for all compilers, there's an equivalent config file. -Steve

Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread David via Digitalmars-d-learn
Hi, New to D (and enjoying the learning..) I've probably missed something obvious but I'm slightly confused with the best way to achieve a simple build. I like to keep my reusable modules in a directory outside of the project directory so I can use them on another project for example. I