[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #46242] Race condition when input file is updated while compili

From: Egmont Koblinger
Subject: Re: [bug #46242] Race condition when input file is updated while compiling
Date: Wed, 21 Oct 2015 10:01:36 +0200

On Tue, Oct 20, 2015 at 11:07 PM, Mike Shal <address@hidden> wrote:

if timestamp(foo.o) < timestamp(foo.c) {rebuild foo.o}


if checksum(foo.c) != last_checksum(foo.c) {rebuild things that depend on foo.c}

But you can get pretty much all the same benefits without having to hash everything just by doing:

if timestamp(foo.c) != last_timestamp(foo.c) {rebuild things that depend on foo.c}

These sound awesome!  With the obvious note that the last_x values should only be updated when rebuilding children is complete, so that if the build is interrupted, they won't be forgotten to require rebuilding.  (Or a more fine-grained, per-children build state could also be stored.)

I personally don't care if the build breaks on an intentional 'touch -t', I'd be happy to see either of these solutions!

Is there any realistic ETA on this feature?

Thanks a lot,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]