[Scons-users] scons interactive mode

Julien Pommier pommier at pianoteq.com
Tue Jul 14 12:44:35 EDT 2020


Note: I can reproduce it using this SConstruct (so no VariantDir as in my previous mail):

CacheDir('cache')
env = Environment()
env.Program('test', 'test.c')


and this test.c:

int main() {
  return 0;
}



> On 14 Jul 2020, at 18:26, Julien Pommier <pommier at pianoteq.com> wrote:
> 
> Hi,
> 
> I’m not sure I’m doing it right, but it seems to me that "scons —interactive" is broken. I’m using scons 4.0.0 but I recall testing that in the past with scons 3 and having the same issue:
> 
> > scons —interactive
> 
> scons>>> build
> (build runs, everything is fine)
> 
> scons>>> build
> scons: Building targets ...
> scons: `.' is up to date.
> scons: done building targets.
> scons: Clearing cached node information ...
> scons: done clearing node information.
> 
> (now I edit one of the files, adding an error in the c file that will cause the compilation to fail)
> scons>>> build
> scons: Building targets ...
> Retrieved `build/test.o' from cache
> scons: done building targets.
> scons: Clearing cached node information ...
> scons: done clearing node information.
> 
> So instead of re-compiling test.c (and failing on the error I inserted in test.c) it is retrieving some test.o from the cache.
> 
> 
> 
> 
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200714/ac4c1436/attachment.html>


More information about the Scons-users mailing list