Good build system?

Andre Pany andre at s-e-a-p.de
Sat Aug 15 19:58:14 UTC 2020


On Saturday, 15 August 2020 at 19:48:51 UTC, Dennis wrote:
> On Saturday, 15 August 2020 at 19:20:39 UTC, Adam D. Ruppe 
> wrote:
>> It shouldn't do that; if it does, I'd call it an 
>> implementation bug. You can list out the specific files that 
>> make up a subpackage.
>
> But an enum / template in a different module could still affect 
> the subpackage even if it's not linked in, so dub 
> conservatively assumes it invalidated the build. The same 
> applies to  stringImportPaths. Maybe if dub supported also 
> specifying `importFiles` instead of `importPaths` it could 
> assume those other modules are not imported.

If files from stringImportPaths are changed, this won't cause a 
rebuild of the dub package as the change is not detected by dub. 
For this reason a new attribute extraDependencyFiles were added. 
This attribute lists files which should cause a dub rebuild if 
file content changes.

Kind regards
Andre


More information about the Digitalmars-d mailing list