Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2344548ybi; Thu, 20 Jun 2019 13:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ2/nuTJ8+mt54FPcdevTypVmvB5u43qVVESTABOXcoxGRUA842fMrEvyDKzt5Wk2fPTKE X-Received: by 2002:aa7:8711:: with SMTP id b17mr75887845pfo.234.1561062414008; Thu, 20 Jun 2019 13:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561062414; cv=none; d=google.com; s=arc-20160816; b=dWHeRVMoBBTfKwOwVZ4SDO9sOaG8tfJpUStXMXj6zyWirEc5pnbZBdS4Uva0UQHHCB s0KXxqJnlIrWxIwJ1wydA614GdmtLwl0vnWNG1cCDI4dRXKmetCdYjJKo0Qs4Y3wK7am JFw8YpQuQMDGE5KDKlvIBwyQsyBlFD1WowcW6QSxj3NIqHEV03+k97hVywmVZOh10Du2 JFpG9gZk2wZIC7N3I++YQpmhiYZ3w5HUI6N0I2xozypf6ikSruPNMJaX32g09hidvYDJ FEdDc1zBbXqtPTohQCYiml+UqXcl6HjHNHXKb3iWLWKciJsCrAkkgLLvuvp4WByfFRyq 0iuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ycDhdoPGK0tl2WgTFRv4StbyxU966OO2E0jZjJjKefo=; b=jQ8WOtVToWYGVztRyQzvVZl5+w1r5KcI2ggLzb4uxcrSFLOQKhnplaGR1UC+88FqY9 c2a4xwc4bCP/ERPQy2MDe7sHVIVBPnH+BNBV3BbQHiEEof5iLLrg5WYxiTPvfuYRS44J VOolYhAC8gEAclqwU5lp25QwUcECg1kRzCqi+2fekMfava8Hth59L4ys0HkbNM/uoED4 W626bSg8fhnH7aZMXnZt0Ytq5evhO2ZOfLsOrLFGoE2NHHOmTCnRbz0J62FbeqJSmdL3 xndlF525QVPeSBKZDrHEF69NiuyrtDwKe1YWqGQBvbLsRrYrV3bBA36vx7TC7B8dO7J0 yI9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LnfTfmTp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si450457pfh.53.2019.06.20.13.26.36; Thu, 20 Jun 2019 13:26:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LnfTfmTp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbfFTUZs (ORCPT + 99 others); Thu, 20 Jun 2019 16:25:48 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42640 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfFTUZs (ORCPT ); Thu, 20 Jun 2019 16:25:48 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so2289630pff.9 for ; Thu, 20 Jun 2019 13:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ycDhdoPGK0tl2WgTFRv4StbyxU966OO2E0jZjJjKefo=; b=LnfTfmTpOc2aDOFcvxvxCyRx2oTQo3uolnpHY/CpqTZYP4dvR5XNkE6ksddEmruRbQ va8N/dMCLiQxEanR2iZyGXYun4/nKM79XDE1/GJgx5bD7Yc64a4eYaH4AzocNkAvznko FEcTm5xUZhg2kW37BqX9OPTzUGNPvIjtIOmNs5ioOPG3tmIXFh4ClycYiDGF7qmYdY/v j3ZqM6OvsYcZZy49XAzng667IFn64Pm0wRHobE2XNni7k2Gjg59eMyDKOIYfoZgAldMZ 8iarFmlMFEfcdrPtKnIzLlms1w9bOg65MD3DxOKTAeIZXi7tgKe8FJil4QaUY0Y44+AE E4uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ycDhdoPGK0tl2WgTFRv4StbyxU966OO2E0jZjJjKefo=; b=uWbgnb5qLNeEZCLuOFhouPXM4EDDoOdrCZBqNdsucQJPPY068pzfKW+IyQhviNIiYk r4JcE00FQOvazFL/wThzeNQjNQILcqfOm8cexIcrjvxYI9Pn7qkF98sIs5co8o87Qt3b RiJ3yl9ljxYvTEa/Uxys8WP+/Jtu1N3o5MXQiYu+Z9OiZuYOch0GimgzXWU/ST+Q3UZP GnppKONz45ZMr7l/y8GukpFDZ/M0SStxoCqU6XOWAKpDH7Tgqkv8iAipoRMszy4mBidh KrPHhMLif2aKnFzW4bOVeipAEGXzvSnV2M9lID+0tXO0ISqSWR/CAfUmkFGcSvjiBHGB VtGw== X-Gm-Message-State: APjAAAU7/dRP6tfNxDT3aHo4E7g3XgyPwsE8SfSs5xmPW1F+GKq4I0Sw 2HLdlJ9j3fr0Jclcz7mdHvZBIr+EcUHdssVquJPpkg== X-Received: by 2002:a63:52:: with SMTP id 79mr14320167pga.381.1561062347264; Thu, 20 Jun 2019 13:25:47 -0700 (PDT) MIME-Version: 1.0 References: <20190620184523.155756-1-mka@chromium.org> In-Reply-To: From: Nick Desaulniers Date: Thu, 20 Jun 2019 13:25:36 -0700 Message-ID: Subject: Re: [PATCH] gen_compile_command: Add support for separate KBUILD_OUTPUT directory To: Doug Anderson Cc: Matthias Kaehlcke , Tom Roeder , Masahiro Yamada , LKML , Raul E Rangel , Tom Hughes , Ryan Case , Yu Liu , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 1:13 PM Doug Anderson wrote: > On Thu, Jun 20, 2019 at 12:53 PM Nick Desaulniers > 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. Hello darkness my old friend: https://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/ Man, that post has not aged well. Here's what we do now: https://github.com/ClangBuiltLinux/continuous-integration/blob/45ab5842a69cb0c72d27d34e73b0599ec2a0e2ed/driver.sh#L227-L245 > Specifically, make sure you have a ccache with: > > * https://github.com/ccache/ccache/pull/365 > * https://github.com/ccache/ccache/pull/370 Oh! Interesting finds and thanks for the pointers. Did these make it into a release version of ccache, yet? If so, do you know which version? > 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. It had better not be autoconf! (Hopefully yet-to-be-written GNU C extensions can support feature detection via C preprocessor) -- Thanks, ~Nick Desaulniers