[Scons-users] How to force a re-building of a cached file using the env.CacheDir() feature.

Don Baldwin donb at qti.qualcomm.com
Wed Jan 18 16:42:35 EST 2023


How does one find the bsig for a file?  I don't see that in the sconsign output.

Thanks,
Don

-----Original Message-----
From: Scons-users <scons-users-bounces at scons.org> On Behalf Of Mats Wichmann
Sent: Wednesday, January 18, 2023 12:08 PM
To: scons-users at scons.org
Subject: Re: [Scons-users] How to force a re-building of a cached file using the env.CacheDir() feature.

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

On 1/18/23 12:33, Don Baldwin wrote:
> Hi,
>
> We’re looking into using the SCons target-caching feature (using the
> env.CacheDir() method), and there is a question of how to force a 
> re-caching of a particular file.  Is there a way to do this?

--cache-force, basically.  There's not any particular granularity to it... I don't think you can give a limited list of targets (one or more) and have only those be updated.

there's also an old issue with a patch which separates --cache-force and --cache-populate (which are currently synonyms) so that they don't behave exactly the same - though the proposed new behavior of of --cache-populate is rather the opposite of what you're looking for, it doesn't update any existing cached files (#1908).

> I looked into trying to find out the md5 value of a file, and then 
> deleting the cached file directly, and I’m running the ‘sconsign’ tool 
> on the .sconsign.dblite file with the -c option to get the csig value, 
> which I think is the same thing as the md5, but those values don’t 
> seem to match any of the filenames stored in the cache.

turns out the "build signature" (bsig) is what is used to generate the cache file name, not the content signature.




_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users


More information about the Scons-users mailing list