Newbie: out-of-source builds with "dub"?

Bastiaan Veelo Bastiaan at Veelo.net
Mon Jul 30 15:48:13 UTC 2018


On Monday, 30 July 2018 at 01:50:23 UTC, CC wrote:
[...]
> My usual modus operandi is:
> 1. check out the project into some directory "foo".
> 2. create another directory "foo.build", somewhere outside of 
> "foo".
> 3. "cd foo.build"
> 4. Run some configuration script/file located in "foo", to 
> generate "foo.build/Makefile".
> 5. Run "make".
>
> I've started playing with "dub", and it *seems* to assume that 
> you want the files generated during the build process to reside 
> directly inside your checked-out source tree.
>
> Is that true?  And if so, am I fighting dub's design by 
> attempting out-of-source builds?

I haven’t tried it, but from the docs it seems that 
“--temp-build” does an out-of-source build, although it’s not 
exactly like your modus operandi.



More information about the Digitalmars-d-learn mailing list