Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1475258pxp; Thu, 10 Mar 2022 06:14:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF4d2c3+oMZLFToz5gdTNfCesVDyvHLtTWC8tsJPoko7fLwXlBHPnMLcMEZ4NaNGlHmcLa X-Received: by 2002:a05:6402:2790:b0:416:55d0:8810 with SMTP id b16-20020a056402279000b0041655d08810mr4486346ede.89.1646921663573; Thu, 10 Mar 2022 06:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646921663; cv=none; d=google.com; s=arc-20160816; b=rvg6DUleJpxsldgRUKZl4GBz9QNccsJ1LnT8O/5t/3tX4FDP1mQ4VkGkEz5+lYbyae lIzKkhPq0/v7ExkJiS+4IqwI6Z1fZ9P6EgFHAK4ojElyuglZSyX5RUl4iNZhAntEYn5z LSaLPcydbLv3gN0k1TiuiNo/Pt7WmOe9y8oqThZ8jbLWjM9z7Fh5jW7JIzgziNKC7rkR moz1oi0t+dhXWC9wAuUM3Mw6YTW7rH1sqrY99oRTcgBcBrUh0rVBZFAw+pK9hh+3eTll hRqyyreo7x76JJbAKQ6ewBXnS+qY8uHpEhO00nPd1da/3whDUJJy8W1cANc8Af1Gop7j 1w+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tU+Fe+vcmWYII8bcpQckbuUOYQxVwc8Ms6FjnpeZUXo=; b=F6bmIeQ+xfGFtchSfRVBKRDhOe9U9fOpdmodVL7Ph/JVGM8cApyuxU6VRLGub3+bwu qCRyRtmugk4Mhj20q3eEzVG8//AIdoGZCywGuJOjbJpb5iVe18VHUCzf+BA7yTDAx2h0 XS0HOowDplF0KyXHkQ2FNs851aNC2dTJFLKS0y28i3xqbtlgzSn4P0kcSZbk2Tfypxtd 1CTixv+JF6/Cmab8WCTPahGdM0aPvOFSwzC53k8D0RgvVlN7GqD0UJ1RP3zaeaCi6cgg l2hk1rWK8BLcNx2BID4flba3I9a1p5SPpIRf1hMjMEUG470xaD97Zk3u2luZADrcsv/X PQRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="L/mvPUr5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs4-20020a170906f18400b006d6ea1b3470si3094317ejb.282.2022.03.10.06.13.59; Thu, 10 Mar 2022 06:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="L/mvPUr5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239019AbiCJAhn (ORCPT + 99 others); Wed, 9 Mar 2022 19:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238992AbiCJAhd (ORCPT ); Wed, 9 Mar 2022 19:37:33 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FFB711EF1B for ; Wed, 9 Mar 2022 16:36:33 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id 3so6687963lfr.7 for ; Wed, 09 Mar 2022 16:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tU+Fe+vcmWYII8bcpQckbuUOYQxVwc8Ms6FjnpeZUXo=; b=L/mvPUr5+ed9/8F1xYBeOkHEQX/N5BqBnxQcWBYwpz8RAerWYK3vG+jQ8UcnJ76O8n Z6F8qP7cE8tNgjablMkD4TSjih/QPIMEsvNLTgmbdeWBRVediWkgAMhZdVVhEgcgGEdK lMZ1J3pO3p0Ql46BLe9TS7msF+0WkJiXc3GEYEhfXxvSABXRpmnJrXBNidzsucgWij7W h71P/xxdG4gMnr+gam3ehpQ7R8zTNQQGhJ/hYPRcyYsfLb7u+8rs0B5WjYUfbEvSpW08 3VtCaxMUJjZ5zrZuYEdWuLeNzUmAVqnhioFkV1FhQj3OlGZ8RQb3TRq3538igabd/3yR jrhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tU+Fe+vcmWYII8bcpQckbuUOYQxVwc8Ms6FjnpeZUXo=; b=ZpLnb2XTfCP7tFZJVjIKZu7QQ1CxY7QscRdgMthI6vBdOJQFnabgYGbJ+vvu+j4Q2i lnxgmHTJgEiAinBIoI/bvQzJ6utKVgtRopPqECOEcMH+jhfw80yVMvVmBtrBR6Y9t9Y+ 5hW4eTYjTKJHCXuifN2n0kCf58KY8naYK+eapWZd2S9o0LaD876h+bC2Mn6PYZ0g4sVj E3h1XUkJwKs9Fj+hZ6eSIhq+fxoII6NDoyGGYHJFaLdp1EqIwWCXwlpyfINrQgf4J4zm 4jeRPcuBhAiaFoR2rA32yr5ARSZfsDl2w0zV6ZfPJG10n9purWuI/XsvdL2AwEblg5lP u3vg== X-Gm-Message-State: AOAM530ETj5i6o8TBDFnQQLZvGOvU+QOJoiydKZBsSL3FX+VOvlIi0aF scjT6SQHJP7DmzgqWBg5m+aWhL1OBf7Cv7zNV1K86A== X-Received: by 2002:ac2:5223:0:b0:448:5100:e427 with SMTP id i3-20020ac25223000000b004485100e427mr1387380lfl.87.1646872591569; Wed, 09 Mar 2022 16:36:31 -0800 (PST) MIME-Version: 1.0 References: <20220304170813.1689186-1-nathan@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 9 Mar 2022 16:36:20 -0800 Message-ID: Subject: Re: [PATCH v2] kbuild: Make $(LLVM) more flexible To: Nathan Chancellor Cc: Masahiro Yamada , Kees Cook , Shuah Khan , llvm@lists.linux.dev, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Peter Zijlstra Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 8, 2022 at 7:47 AM Nathan Chancellor wrote: > > On Mon, Mar 07, 2022 at 11:08:29AM -0800, Nick Desaulniers wrote: > > On Fri, Mar 4, 2022 at 9:14 AM Nathan Chancellor wrote: > > > > > > +If your LLVM tools are not available in your PATH, you can supply their > > > +location using the LLVM variable with a trailing slash: :: > > > + > > > + make LLVM=/path/to/llvm/ > > > + > > > +which will use ``/path/to/llvm/clang``, ``/path/to/llvm/ld.lld``, etc. > > > > I don't think we should do this; `PATH=/path/to/llvm/ make LLVM=1` > > works and (my interpretation of what) Masahiro said "if anyone asks > > for this, here's how we could do that." I don't think I've seen an > > explicit ask for that. I'd rather LLVM= have 2 behaviors than 3, but I > > won't hold this patch up over that. Either way: > > Right, there has not been an explicit ask for the prefix support yet, > although I know I personally would use it, Then let that be reason enough. :) -- Thanks, ~Nick Desaulniers