[Buildroot] [PATCH v2] ccache: allow dynamic selection of cache directory
Thomas De Schampheleire
patrickdepinguin+buildroot at gmail.com
Sat May 5 07:17:38 UTC 2012
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...
Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120505/57505982/attachment-0002.html>
More information about the buildroot
mailing list