[Scons-users] force rebuild of a specific target

William Blevins wblevins001 at gmail.com
Fri Oct 16 13:14:40 EDT 2015


What I think will help more is explaining "why" you think this file "should
be" rebuilt given the fact that it isn't done automatically because this
may be an issue with SCons proper.

V/R,
William

On Fri, Oct 16, 2015 at 6:12 PM, William Blevins <wblevins001 at gmail.com>
wrote:

> If you are linux, the "find" command will do this reasonably quick.
>
> V/R,
> William
>
> On Fri, Oct 16, 2015 at 5:33 PM, Roberto De Vecchi <
> roberto.devecchi at vi-grade.com> wrote:
>
>> 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>
>> 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> 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
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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/20151016/e3f6ff96/attachment.html>


More information about the Scons-users mailing list