[Scons-users] force rebuild of a specific target
Roberto De Vecchi
roberto.devecchi at vi-grade.com
Fri Oct 16 12:33:23 EDT 2015
William,
Thx for the quick answer! I’m mainly using MD5-timestamp decider with no cache. The method that seems closer to my goal is to delete the actual file and then rebuilt it but I would like to do this without having to browse to the directory that contains the target (I’m running with variant dir and a huge tree so finding out the file location is an annoying process !!)
Cheers
Roberto
From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of William Blevins
Sent: Friday, October 16, 2015 17:56
To: SCons users mailing list <scons-users at scons.org>
Subject: Re: [Scons-users] force rebuild of a specific target
Also, depending on what decider you are using MD5 vs timestamp you may just be able to touch the file (IE. to change the timestamp). Also, if you are using caching then the rebuild will just pull the old file from the cache since the dependencies will not have changed.
V/R,
William
On Fri, Oct 16, 2015 at 4:34 PM, William Blevins <wblevins001 at gmail.com<mailto:wblevins001 at gmail.com>> wrote:
You can move or delete the file in question; this will mark the node as out-of-date which will cause a rebuild. Is that sufficient? You can also mark a node as AlwaysBuild if that is more what you are looking for: http://www.scons.org/doc/HTML/scons-user/ch06s09.html
V/R,
William
On Fri, Oct 16, 2015 at 3:47 PM, Roberto De Vecchi <roberto.devecchi at vi-grade.com<mailto:roberto.devecchi at vi-grade.com>> wrote:
Hi all,
I’m looking for a way to request scons to rebuild a specific target. The best for me would be to find a way compatible with the interactive mode.
Digging a bit in the scons code base I found the option –assume-new that seems to do what I need ( mark a node as out of date ), but it’s not yet implemented.
As an alternative I tried issuing a clean + build commands on specific node, but in this way the clean command is cleaning all the nodes on which my target depends on making the build process too time consuming.
Any idea / suggestion is welcome!
Cheers,
roberto
_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto: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/20151016/0ae69ec2/attachment-0001.html>
More information about the Scons-users
mailing list