[Scons-users] Failed command does not invalidate the target

Marc Branchaud marcnarc at xiplink.com
Wed Jun 4 10:18:07 EDT 2014


On 14-06-04 06:59 AM, Gary Oberbrunner wrote:
> 
> On Tue, Jun 3, 2014 at 11:44 PM, William Deegan <bill at baddogconsulting.com
> <mailto:bill at baddogconsulting.com>> wrote:
> 
>     SCons does assume that you don’t modify the output files from a build.
>     It only keeps the signatures for sources, not targets.
> 
> This is true.  However I'm wondering about Neil's original question, which is
> shouldn't SCons delete the target if the builder fails?  I thought SCons
> always deletes the target(s) before running a builder, so I'm guessing in his
> case the builder wrote a partial output file and then failed.  I think in
> this case it probably does make sense for SCons to delete the failed output
> file.  Opinions?

I agree with Neil that this looks like a SCons bug.

If a builder's command fails then I expect SCons to re-run the failed
command, even if the targets somehow got created or modified the first time.

		M.



More information about the Scons-users mailing list