[Buildroot] [PATCH v2] ccache: allow dynamic selection of cache directory

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Tue May 15 18:13:14 UTC 2012


On Sat, May 5, 2012 at 9:17 AM, Thomas De Schampheleire
<patrickdepinguin+buildroot at gmail.com> wrote:
>
> Op 4 mei 2012 22:46 schreef "Arnout Vandecappelle" <arnout at mind.be> het
> volgende:
>
>
>>
>> On 04/06/12 20:47, Thomas De Schampheleire wrote:
>>>
>>> -define HOST_CCACHE_FIX_CCACHE_DIR
>>> -       sed -i 's,getenv("CCACHE_DIR"),"$(CCACHE_CACHE_DIR)",'
>>> $(@D)/ccache.c
>>> -       sed -i 's,getenv("CCACHE_COMPILERCHECK"),"none",' $(@D)/ccache.c
>>
>>
>>
>>  On second review, a better implementation would be to replace the first
>> sed by
>>
>> sed -i 's,getenv("CCACHE_DIR"),getenv("BUILDROOT_CACHE_DIR"),'
>> $(@D)/ccache.c
>>
>>
>>  Then you no longer need the wrapper script at all.
>
> Well, it boils down to the choice between patching the source or using a
> wrapper. I can see benefits for either way.
> Additional input from other developers is welcome here...

Any feedback on this from other developers?

Thanks,
Thomas



More information about the buildroot mailing list