[Buildroot] [PATCH 2/2] package/ccache: add wrapper for internal toolchain
Károly Kasza
kaszak at gmail.com
Sun Apr 26 09:45:06 UTC 2015
Hello Thomas,
Well, even for external toolchains using the mtime on the compiler in
> $(HOST_DIR)/usr/bin will not work. Because the compiler in
> $(HOST_DIR)/usr/bin is not actually the compiler, but a binary wrapper
> built by Buildroot, for which the mtime will change at each build.
>
That is true, so the wrapper for external toolchains also needs the
extrafiles/hash solution. I simply missed this.
> I must say I don't quite like the fact that the solution used here is
> different between internal and external toolchain, but I haven't
> thought too much of the problem.
>
I thought this would be more efficient, but the above statement kills it.
> How would ccache work with external toolchains?
>
Well, using mtime is out of question because of the BR built wrapper, so it
requires the
same solution: a wrapper for ccache and using extrafiles/hash as for the
internal.
This means a wrapper will always be needed, and has to recognize the
toolchain - mtime for HOST_CC and EXTRAFILES for TARGET_CC always.
Kind regards,
Karoly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150426/a70247b4/attachment-0002.html>
More information about the buildroot
mailing list