Good build system?

Avrina avrina12309412342 at gmail.com
Sat Aug 15 15:45:44 UTC 2020


On Saturday, 15 August 2020 at 14:22:44 UTC, burt wrote:
> Hello,
>
> I have a project that is taking very long to compile (I'm on 
> Windows).
>
> It consists of a bunch of precompiled library (.lib) files and 
> some .d source files inside of my "source" directory. Currently 
> I am using DUB and the .lib files are added to "sourceFiles" in 
> dub.json, which works, but if I edit a single letter it will 
> recompile everything.
>
> One alternative would be to split up my package into 
> "subPackages" to avoid recompiling everything, but that would 
> mean splitting up my current directory structure into a 
> structure that is harder to navigate.
>
> Another alternative I tried is Reggae, but it doesn't work on 
> Windows:
> 1. When calling .reggae/dcompile, it fails, because the Windows 
> shell (intuitively as always) splits of the ".reggae" from 
> "/dcompile" and treats them as separate arguments (managed to 
> fix this by editing the Reggae source slightly, in 
> payload\reggae\build.d : expandCmd).
> 2. Either it takes FOREVER to compile and link the thing, or it 
> gets stuck in some kind of infinite loop.
>
> Anyway, it doesn't work.
>
> What kind of build system could I use to speed up compilation 
> when editing very little, or could I configure DUB so it 
> recompiles per file instead of per package?
>
> Thank you.

What project are you compiling? It would help to diagnose the 
problem, as well as what the specs of the computer you are using 
are.


More information about the Digitalmars-d mailing list