Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp251018pxm; Wed, 2 Mar 2022 14:36:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUOWsF7IK0A2Mbq1uJUl0mvscn8yN2T2q+AHDjvTDQgRDEHrP3UPTp57LGnhbWmJBB7n6R X-Received: by 2002:a17:902:c40e:b0:151:a264:288c with SMTP id k14-20020a170902c40e00b00151a264288cmr2590361plk.42.1646260582813; Wed, 02 Mar 2022 14:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646260582; cv=none; d=google.com; s=arc-20160816; b=VY1FR0WdOk5YkVgHH37TUADL9/lRRmfbejevvJJhEiaRiphE0N//va7tXwZ0j6IMG8 4EgbbG1OBwoXhxAog4celyEDUpkCzJQpczW1QqOdGPuSNkFI1vPjNipNm/0BuU3b//RO HAK9eiWW6k1srwF1qXSfF2NXMnY/hYD0NN9i1mGmoOfowHRGUk03NYngQzLZ++3/ja+g Uz2jFgcPpUd4g+7YKw0qrk7VR6AHDFUDQaZZXUGNJu384EsTKD4wEhM8eHe858C7m5JR hvXAVK2NR1KlvzGm3z1nutiME7imeaImyD3GtCxnp9LWglv20/4BCvhr87poL+sstIKy UnVA== 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=VeHPbYUmDQhwRvLDR7SEcUbulwlYPwQ9kvkyCVmk6Cw=; b=n0ebX3HxIHESNounRm+6HBncpEJOYJuylKYE6LjCGtsaI7jtRZsHz1xyZSujtOan8Y JOme+2mArEZ2BsGWW4LS5jcDPWp3lZuKuz5WFPmvSAC4V19FPv7OlVyP2pBLCktIf1iZ 8tjoMt4p4KwHaR/e2XxuaUkVQC6F2lPtMeB93XbuwVycNamMrEcON5tVGcbLzShsS3e8 cyP3ZAgkU2+qBP3KQfTUyQArNG/n4iojdCCrHyD4V2yVtN5m4dVMvq279Z006aCZGzlb cezTKIc+EB6cgNxFeoDCZMUMqc6R3qhV/yJddash440Hh9ZqBjxmirQKUEMEBXKfLmxA mYIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Rz6tM8IH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v12-20020a17090a458c00b001b9fbccf90esi6261004pjg.141.2022.03.02.14.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:36:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Rz6tM8IH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB4961E3EE; Wed, 2 Mar 2022 14:33:01 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbiCBTTM (ORCPT + 99 others); Wed, 2 Mar 2022 14:19:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234699AbiCBTTG (ORCPT ); Wed, 2 Mar 2022 14:19:06 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9534F25E8 for ; Wed, 2 Mar 2022 11:18:22 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id b9so4502387lfv.7 for ; Wed, 02 Mar 2022 11:18:22 -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=VeHPbYUmDQhwRvLDR7SEcUbulwlYPwQ9kvkyCVmk6Cw=; b=Rz6tM8IHWtmgttApx6BQXB7nieWceAqjNI2q3DfeSvnaQJSxpDT0ODHPnt+x613KVn sNrtExKe2lavT0wn5a0zIgIXpCH2KtVD64NdWQ6FYfu/AZDQc03Doz/F9aIOw9GibMYE bndEBVlQUsbr3AmnJE01ivzb96YDeKZk3/xbs9wPClplCgN2INNCA7VRfb0lIWcUQTMu IhmZ1TjSkUz2MxAaXkP2QHUBhw7PtukHeUuez09hAnjFlppbanVdfKHHi7GM9bIFHuTa ZmFkzkQFF8L0u8PePaQ/oHLdEYdscE21liiS64teesMBTmkzOtnzryx7isr1vS8o4BCu 89tQ== 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=VeHPbYUmDQhwRvLDR7SEcUbulwlYPwQ9kvkyCVmk6Cw=; b=rjC4NCDBelalw3MQs8qKqIMuv6Jcx/hWtyxfJwd0UFrmz+zYeCKiAmUyHBH89LMuk9 xfqY8aa4jjGGg6+f/FK42OimP+Y84ik1BUSyz5tcmveiYai/Yi5RfWsu7k0e1DYyg0OB xi8TI1HHRakc3BQ+kiwa/5IUJi+1Pbs2k2jIaKki+ISYW1Hu3umw/ho7pC33ADHkmmd2 CjDsrTvmSzk9vZ36Dp9oN0cKf69rNV9ER/8iyxvdVByasvkxkXvHyw8MU6khqIGGmBEB su4aGPK8N+/KyFDv/zvNFRTPeXgooJhGnQrw6CF6WTs/4ZjIYywFzO3GrIfAYIKTmrrD YVeg== X-Gm-Message-State: AOAM530VUXbd07LT9mdVP2xqBUyIXuMFSwTwYOTGxj/+xMpPKAKStvlk AbGLzo0YrXV8NKxXRZC2up70bCWcI9qsfLa7eLmfIA== X-Received: by 2002:a05:6512:3341:b0:433:b033:bd22 with SMTP id y1-20020a056512334100b00433b033bd22mr18699297lfd.190.1646248699637; Wed, 02 Mar 2022 11:18:19 -0800 (PST) MIME-Version: 1.0 References: <20220224145138.952963315@infradead.org> <20220224151322.072632223@infradead.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 2 Mar 2022 11:18:07 -0800 Message-ID: Subject: Re: [PATCH v2 01/39] kbuild: Fix clang build To: Nathan Chancellor , Peter Zijlstra , keescook@chromium.org Cc: x86@kernel.org, joao@overdrivepizza.com, hjl.tools@gmail.com, jpoimboe@redhat.com, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, mbenes@suse.cz, rostedt@goodmis.org, mhiramat@kernel.org, alexei.starovoitov@gmail.com, Masahiro Yamada , Linux Kbuild mailing list , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_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 Wed, Mar 2, 2022 at 8:37 AM Nathan Chancellor wrote: > > On Tue, Mar 01, 2022 at 01:16:04PM -0800, Nick Desaulniers wrote: > > As per our previous discussion > > https://lore.kernel.org/linux-kbuild/CAKwvOd=x9E=7WcCiieso-CDiiU-wMFcXL4W3V5j8dq7BL5QT+w@mail.gmail.com/ > > I'm still of the opionion that this should be solved by modifications > > (permanent or one off) to one's $PATH. > > However, I think we could still address Peter's complaint of "there > should be an easier way for me to use the tools that are already in my > PATH" with his first iteration of this patch [1], which I feel is > totally reasonable: > > $ make LLVM=-14 > > It is still easy to use (in fact, it is shorter than 'CC=clang-14') and > it does not change anything else about how we build with LLVM. We would > just have to add something along the lines of > > "If your LLVM tools have a suffix like Debian's (clang-14, ld.lld-14, > etc.), use LLVM=. "If your LLVM tools have a suffix and you prefer to test an explicit version rather than the unsuffixed executables ..." > > $ make LLVM=-14" > > to Documentation/kbuild/llvm.rst. > > I might change the patch not to be so clever though: > > ifneq ($(LLVM),) > ifneq ($(LLVM),1) > LLVM_SFX := $(LLVM) > endif > endif > > [1]: https://lore.kernel.org/r/YXqpFHeY26sEbort@hirez.programming.kicks-ass.net/ I'd be much more amenable to that approach. -- Thanks, ~Nick Desaulniers