[OE-core] [PATCH 1/4] base.bbclass: Remove invalid ccache related code
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Dec 10 10:29:55 UTC 2018
On Sun, 2018-12-09 at 18:24 -0800, Robert Yang wrote:
> The code is in setup_hosttools_dir(), it searches ccache in PATH in
> reverse order, I can't figure out what it is used for, maybe it is
> aimed to use host's ccache rather than recipe-sysroot-
> native/usr/bin/ccache, but the later one isn't in original PATH, so
> remove the code.
>
> Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
> ---
> meta/classes/base.bbclass | 2 --
> 1 file changed, 2 deletions(-)
We should document it and I think its still needed.
Some distros have a "gcc" which automatically wraps ccache behind the
scenes. This code lets us find the real gcc and bypass ccache.
There would be oe-selftest failures on such a distro if we didn't do
that.
Cheers,
Richard
More information about the Openembedded-core
mailing list