On 13 January 2017 at 14:23, Yannick Gicquel <yannick.gicq...@iot.bzh>
wrote:

> +def init_ccache():
> +    # dummy python version
> +    return
> +
> +init_ccache() {
> +    if [ -n "${CCACHE}" ]; then
> +        ${CCACHE} -M ${CCACHE_MAX_SIZE}
> +    fi
> +}
> +
> +do_compile_prepend() {
> +    init_ccache
> +}
>

That is horrible. :)

Is it not possible to just pass -M[size] to ccache every time it's
invoked?  If it needs to be invoked on its own, then a do_compile[postfunc]
or something to trim the size after a build would be neater.

Ross
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to