Re: [PATCH] gen_compile_command: Add support for separate KBUILD_OUTPUT directory

From: Doug Anderson
Date: Thu Jun 20 2019 - 16:13:29 EST


Hi,

On Thu, Jun 20, 2019 at 12:53 PM Nick Desaulniers
<ndesaulniers@xxxxxxxxxx> wrote:
>
> I do miss Doug's Kbuild caching patches' speedup.

You actually get quite a bit of this by grabbing a new version of
ccache (assuming you use ccache). :-P You still have to pay the
penalty (twice) for all the options that are tested that the compiler
_doesn't_ support, but at least you get the cache for the commands
that the compiler does support.

Specifically, make sure you have a ccache with:

* https://github.com/ccache/ccache/pull/365
* https://github.com/ccache/ccache/pull/370

I still have it in my thoughts to avoid the penalty for options that
the compiler doesn't support but haven't had time to work on it
recently.


-Doug