D-lighted, I'm Sure

Neia Neutuladh neia at ikeran.org
Fri Jan 18 20:03:09 UTC 2019


On Fri, 18 Jan 2019 11:43:58 -0800, H. S. Teoh wrote:
> (1) it often builds unnecessarily -- `touch source.d` and it rebuilds
> source.d even though the contents haven't changed; and

Timestamp-based change detection is simple and cheap. If your filesystem 
supports a revision id for each file, that might work better, but I 
haven't heard of such a thing.

If you're only dealing with a small number of small files, content-based 
change detection might be a reasonable option.

> (2) it often fails to build necessary targets -- if for whatever reason
> your system clock is out-of-sync or whatever, and a newer version of
> source.d has an earlier date than a previously-built object.

I'm curious what you're doing that you often have clock sync errors.


More information about the Digitalmars-d-announce mailing list