[Scons-users] Handling deleted source files

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Thu Jun 27 12:10:26 EDT 2013


shouldn't that be Depends(generatedFiles, cppSourceFiles)? Currently you state all your source files depend on the generate files, which seems wrong.

----- Original Message -----
From: dan.pidcock at googlemail.com
To: Tom Tanner (BLOOMBERG/ LONDON), scons-users at scons.org
At: Jun 27 2013 15:20:49

Ah thanks - I tried running with --debug=explain --tree=all and there seems
to be some dependency between some other generated files and the removed
.cpp, even though I thought these should go the other way round as I have
Depends(cppSourceFiles, generatedFiles)

I will have to strip this down to a simple example to get to the bottom of
it...


On 27 June 2013 14:28, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:


> Is it possible your SConscript is accessing the .o files with a Glob or an

> explicit Depends(target, thing.o) or something similar.

>

> It should only look at the .o files if you have a dependency and if you

> don't, they're just rubbish lying around.

>

>

> ----- Original Message -----

> From: scons-users at scons.org

> To: scons-users at scons.org

> At: Jun 27 2013 13:15:45

>

> Hi,

>

> Whenever somebody deletes (or renames) a source file in our project, scons

> will fail the next build because it finds the existing .o file in the

> variant directory, but doesn't know how to create it as the .cpp file has

> disappeared underneath it.

>

> scons -c before updating from source control does fix it but:

> 1. This causes a full rebuild which is very slow

> 2. You have to know that somebody else has deleted a file before you

> update your source

>

> Is there a SCons way around this?

>

> Googling "scons deleted source files" didn't find me anything so I suspect

> this is a failing in my usage of SCons rather than with SCons itself.

>

> Thanks,

>

> Dan

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>




More information about the Scons-users mailing list