Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2876938pxb; Tue, 9 Mar 2021 13:17:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5GYwxbCeXm+V2lmSgqwbRWrygr2eMARy4oVZmb30hj1Wpd+SorEyrnJfCQp/oxawKhCyz X-Received: by 2002:a17:906:94ca:: with SMTP id d10mr27088ejy.107.1615324668149; Tue, 09 Mar 2021 13:17:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615324668; cv=none; d=google.com; s=arc-20160816; b=AilWZGdAIvkCnNtce3XfZDBelhSQg1wZOP8HHCTmZfNE7aAwrhTdpjfhNgZbXkmr4v nkfgSx8al8ed60L6RT5MuxpyUcIaVzL9HHA3FX6yj6T8mnVgEZHzBRl/FkwH4efByyZe i6kb1/bB3mcS/MowrVtN5PKbrZ6LPcriTS8repga1/OB8TVNHbJ7fTBBId6UA+MATecU 40YbfdFxidAOsBFQ7+PdyONSmI9iRfkt2Wma5a1+9sgEKtZhU9sxm4veO0UBB+sxaXKO Vmh6GqGEpHEP7M+E3mq4VpPKAGXjd4n80IHqV+t007OqytmsIyg+e/roH100G3pmp7N9 nXBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dnLdM6V19dYuJ5oWXUJHk+YsPLsfZioKwGopMLufT4w=; b=jqK7A1USmdJnDTE/tYy0v7JvDD6xdEMUNF/bhbMh3EAvRxMxaf2hpOsxFazFCB8wPU 9BmYCBvqyr961Qt9yup6VcX7iK0OGbmnsmC6sDBNiHPTBF56T5mferMeQRXfp6OQBecX ycvlYzl0kuA4bdDwzwupgO/AcbLl7Z0/fff15cx3DLQfh66EoujyxU0kq5WLxwm9zfIx QCRuhTWLCeE79IpRGi+ErLup956+xwV/jPun9vaFGHokoaHFUbqg6XdmoeNUTkIvnXLL WMHYhiJvK+3V4gQE0vQab7GCFDPnlLG+0xlrT0kaaylZm1wtkmKEFbK4D1ud9TAWzIRw sGPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RsyKUaD5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id pk25si10444069ejb.402.2021.03.09.13.16.58; Tue, 09 Mar 2021 13:17:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RsyKUaD5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231906AbhCIVPv (ORCPT + 99 others); Tue, 9 Mar 2021 16:15:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbhCIVPc (ORCPT ); Tue, 9 Mar 2021 16:15:32 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4FCC06174A for ; Tue, 9 Mar 2021 13:15:32 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id e2so2008750pld.9 for ; Tue, 09 Mar 2021 13:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dnLdM6V19dYuJ5oWXUJHk+YsPLsfZioKwGopMLufT4w=; b=RsyKUaD5iS2WQePCyWDtH+L7M3aHuWLu7s+Q/o+EJ5wHgWtebAb5PjPQSJK0/rS85s ZP93aCOCPQxWLkUDEBO5CgCHLxYogUsKW48GleN5CDCn5a05zbURHIjTcsxzhb8y8R+T +77B8y4sTr0TjHgTNEKthIAF4iiBhL1h91VSl2yux5zH19vo3HYtA08npg6DqQ475Pdn VwOLTCeWEDl66DMONuGnnW65+erlBkUTXUpCtYeubdJYxJJczQQ0ixUeqARzY0h1Nzoh IyKGsE1mq2G0ujt3SJal7fK0YbvE3Pi5MicUZftDcK8TlXe5YI5y4LUGgNbtxD32pRR4 lgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dnLdM6V19dYuJ5oWXUJHk+YsPLsfZioKwGopMLufT4w=; b=daAdXqbqvxcB0q6kTdwqhNgpAdV2pwpDcdU0Itsrm6WIsfjdJ1wOh+2YpBkvf/4jf5 cF3lQ2jtOrWS1wX64F/sOZiiMxBNxH+7jM1iQ7SCOFPOV7Cm9yr78PGjSP5CTsLGDim9 0xqJhYqpBdS9w9rx7gVjnMlbGwsPvxZJQV8aZxHCvoUxsyYVguNtPdgKzuq1gyj2aA6S Fkax8iQPBjCJcrtDinE55+xiI3yXdiVTQupGTGjN+j9ygJrO9oYbwgyf8AzdE35EfYCy OjcUZU83Br/kyNYpD3+DyuJkBQ0mYF/1VAqLkeEBzUT2aapbxmjqaQSLhV5MNRUSorOl e34A== X-Gm-Message-State: AOAM533gI4auESXb9qiXRYXxDzH0fPMvwDdGUHADeiAC8xClZnERPrmn /O72Rr1yZL+F8t/WqCbLmGq7ug== X-Received: by 2002:a17:90a:8813:: with SMTP id s19mr6538514pjn.94.1615324531902; Tue, 09 Mar 2021 13:15:31 -0800 (PST) Received: from google.com ([2620:15c:2ce:0:e577:9d57:1fab:6e0b]) by smtp.gmail.com with ESMTPSA id 82sm13602154pfv.19.2021.03.09.13.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 13:15:31 -0800 (PST) Date: Tue, 9 Mar 2021 13:15:27 -0800 From: Fangrui Song To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Sedat Dilek Subject: Re: [PATCH v2 1/2] Makefile: Remove '--gcc-toolchain' flag Message-ID: <20210309211527.us52fgxdzpf25xzw@google.com> References: <20210302210646.3044738-1-nathan@kernel.org> <20210309205915.2340265-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210309205915.2340265-1-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-09, Nathan Chancellor wrote: >This flag was originally added to allow clang to find the GNU cross >tools in commit 785f11aa595b ("kbuild: Add better clang cross build >support"). This flag was not enough to find the tools at times so >'--prefix' was added to the list in commit ef8c4ed9db80 ("kbuild: allow >to use GCC toolchain not in Clang search path") and improved upon in >commit ca9b31f6bb9c ("Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang >cross compilation"). Now that '--prefix' specifies a full path and >prefix, '--gcc-toolchain' serves no purpose because the kernel builds >with '-nostdinc' and '-nostdlib'. > >This has been verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as >well as a distribution version of LLVM 11.1.0 without binutils in the >LLVM toolchain locations. > >Link: https://reviews.llvm.org/D97902 >Signed-off-by: Nathan Chancellor The wording looks good. Reviewed-by: Fangrui Song