[Scons-users] Caching compiler side effects?

Andrew C. Morrow andrew.c.morrow at gmail.com
Mon Jun 16 15:21:21 EDT 2014


Hi Bill -

Thanks for clarifying about side effect. In my particular use case, I
don't want the second generated file to be included among the objects
that will be linked. If I use a custom emitter that names this other
file along with the .o, won't Program and Library try in turn to pass
the file on to the link phase?

Thanks,
Andrew


On Sun, Jun 1, 2014 at 10:00 PM, Bill Deegan <bill at baddogconsulting.com> wrote:
> Andrew,
>
> Likely you need the emitter to add it as an output file.
> SideEffect files are assumed to be "unimportant" and likely that's why they
> are not cached.
> SideEffect() is just meant to notify scons that "hey there's this other file
> being output by this step, please be aware and among other thing don't run
> steps which also produce this file at the same time.."
>
> -Bill
>
>
> On Sun, Jun 1, 2014 at 4:42 PM, Andrew C. Morrow <andrew.c.morrow at gmail.com>
> wrote:
>>
>>
>> This was asked long ago on SO but never had a satisfactory reply:
>>
>>
>> http://stackoverflow.com/questions/3633542/scons-how-to-put-multiple-output-files-in-cache
>>
>> I'm finding myself in the same situation. In some situations my C++
>> compiler emits an extra file along with the .o. I've declared the extra file
>> as a SideEffect, I believe correctly, but it does not appear to be populated
>> into the CacheDir, and therefore it is not copied back out when the
>> associated .o is retrieved from the cache.
>>
>> How can I inform SCons that I want the extra file cached?
>>
>> Thanks,
>> Andrew
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> http://four.pairlist.net/mailman/listinfo/scons-users
>>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>


More information about the Scons-users mailing list