[Scons-users] Post-processing of binaries

William Blevins wblevins001 at gmail.com
Fri Apr 10 20:28:49 EDT 2015


Option B makes the most sense.  Option A done correctly would give a Cyclic
Dependency error without explicitly doing a dependency ignore call from
source to target.

My opinion would be to make a custom builder/emitter to take in your source
Q and post-process to target R.  SCons default behavior will remove the old
target before rebuilding, so you will not have to explicitly remove it if
the action fails.


On Thu, Apr 9, 2015 at 2:36 PM, Jonathon Reinhart <
jonathon.reinhart at gmail.com> wrote:

> On Tue, Apr 7, 2015 at 1:30 PM, Dirk Bächle <tshortik at gmx.de> wrote:
> > if I would send you a binary file, without any additional information,
> how
> > would you know/decide whether this file was already post-processed or
> not?
> One solution is, if the file exists *at all*, it must be complete.
> Can we make an
> action list operate atomically?  Can the target file be deleted if any
> of the actions
> necessary to complete it fail?
> I've posted this question on Stack Overflow, because SCons thankfully does
> get
> a fair amount of attention there!
> http://stackoverflow.com/questions/29546276/scons-delete-target-on-failure-of-any-action
> Thank you,
> Jonathon
> _______________________________________________
> 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/20150410/f7b3bad3/attachment.html>

More information about the Scons-users mailing list