Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1257609lqj; Mon, 3 Jun 2024 15:47:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrgMRK4cJuP4cOGUdKspAFJAVqcl7CNK6KFlCEikgRh/2yq4aA7o6b6e4yguQReIPl4D2rdB1BK+mDh6vbUnZIsloCsb/PMa+ouSgozA== X-Google-Smtp-Source: AGHT+IHxbLNcOChchb9AvhWdTYG/Igvi1bGoGQmq2dvoeOlJyasq9A8eeAM+N7z/GXGkZWZH+pym X-Received: by 2002:a50:a6dd:0:b0:57a:30fb:57e with SMTP id 4fb4d7f45d1cf-57a3649201amr7043084a12.36.1717454839076; Mon, 03 Jun 2024 15:47:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717454839; cv=pass; d=google.com; s=arc-20160816; b=RRhsH5o8ZhrxBa7tsasMEzLRWVVa2On6svb/83zuTw1IMQPDylqy95TkiGOwqBmK0t 0k+FoGepRHiATA7py+i1MlYS1O+bc80gxarD7gjH8Q5UgTSBKhMxB3vRKw6oS9dnKs4X bexYldhV5wdTPnuHOFGRCo2UDIZ5/fRgUhbfR5i5xOixJvR0RcN2NqXASWQvQ1NLv4Nu /RdU3tXdt+VFvfb6k9M2f2yTYVdvs8PzgNsWdrNPTseKmM1u1cOLbawkq82SJLnutB8B izmcMjldgDCQqvn3o+byGMzh2CKaX2aV20rf+Xq7WD172anbCvupHK5VmwkzFr06koez HI4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z+vER/0muuzHN0tH7BmSYnT77Pk0ADleOPpibOYDikQ=; fh=FMtakzs4FowjguYy8QQOAbbBC60Aqvv0cgyqCVGpQdg=; b=j5EZH++bSj+HQBUmT5x7H2dfVhcIj3YLXIWWNnzAL0IuHcS1RmUVvtDIYBruVJA4F9 i+adNWk0EHjBLq7wZkzceAtxlFzDvJrovF50Cc9B99n4RjkJchbt9Lp02m2IHnfj/BkW jNxQ662benrXMfIboqrk3/GSfhRMuVFkUSiENn6ZQRuTnrZcfppYvzwLszJr+3nV99E3 3D/dvBTwZsGK4atLQOUgba6Ly2fVIBnc5pHX9nOIl68SZEGx2aqgeeJl0hSuejnIavVV 5bt8VtFjMGRGxn+E/0vNgGPwlrId88NQycr9jx6B9rwRtJnyWc8lVL8FdGz7NED6S5eD gsMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fibaACtf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31b80e24si4443763a12.55.2024.06.03.15.47.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 15:47:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fibaACtf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C3F441F24F5C for ; Mon, 3 Jun 2024 22:47:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2A4413CF93; Mon, 3 Jun 2024 22:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fibaACtf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2D5D13B791; Mon, 3 Jun 2024 22:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717454831; cv=none; b=kr91nHR806BI7E97zHE4jAtv4KDMXKxpzAIOPeNGANzkvBZheQwq7yk/l/ztODnm33mKJjE1wmHrWVYSiFZjq3kWbvtVVeaqJ9dTsXfvgIYzB5GP54vtfS+ZJ1ooDMkp9UdJ9zABQO7KiefKHo+DRgwjVpetNB6Dqbl0Yg8ELTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717454831; c=relaxed/simple; bh=viU1XXBpM47eqpx2+Q22SLTf97RsegF6lP9ebaCxH3g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VlOOVUsFrSMu2NGEQ3Ji3qqEMLrCPkWdKn7RDnZ6/3gyjjqn1USqLMpE5l2aPdVxUYbhMPKJLsHkRCYDH3o1vNeh2Kxwa0W6/7JyFeMDGLD7rgsNFvS9m2W+QDMo6nEJxbdZqhC/kCgj1NzsfF9mETrn/doy0GAEs+azAEyKoPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fibaACtf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A6FEC2BD10; Mon, 3 Jun 2024 22:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717454829; bh=viU1XXBpM47eqpx2+Q22SLTf97RsegF6lP9ebaCxH3g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fibaACtfiFsAyDwOQ8T4iWHN6EJUe1UdfAOBceRjSifasIW0VkEXocDArEp3L55OF F5M7HInrIYVfen/XSGHB1Z0h7pLUD9yumTMpjLDYbfOko9bH0uanfSpARwi5pW9hBa EBnHNOr54fmrk9YNfq2Um7YB0mtrBcQZB/FO68+MPXvGdaWyXBrUzfbPP9UR4yNwCh N/mEJe0f75f8DB8G5dez4l0Z9c8pQzg1G6hbsLYdJ8MBcSsRJ1SIgSmqALWobgVokT p2aK5BDkEAW04ieNySDTH861kjrIWFzcT01e/P3zcy3wu6vzzefvwHwcj9lMTxo5DT ph7xhvmetK5zA== Date: Mon, 3 Jun 2024 15:47:06 -0700 From: Nathan Chancellor To: Mark Brown Cc: John Hubbard , Shuah Khan , Muhammad Usama Anjum , Beau Belgrave , Steven Rostedt , Naresh Kamboju , Nick Desaulniers , Justin Stitt , Bill Wendling , sunliming , Masami Hiramatsu , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, Ryan Roberts Subject: Re: [PATCH v2 1/2] selftests/lib.mk: handle both LLVM=1 and CC=clang builds Message-ID: <20240603224706.GA245774@thelio-3990X> References: <20240531183751.100541-1-jhubbard@nvidia.com> <20240531183751.100541-2-jhubbard@nvidia.com> <306eebf8-bb5d-4e1a-9fa3-ad3f4ea11b9c@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <306eebf8-bb5d-4e1a-9fa3-ad3f4ea11b9c@sirena.org.uk> On Mon, Jun 03, 2024 at 04:32:30PM +0100, Mark Brown wrote: > On Fri, May 31, 2024 at 11:37:50AM -0700, John Hubbard wrote: > > The kselftests may be built in a couple different ways: > > make LLVM=1 > > make CC=clang > > > > In order to handle both cases, set LLVM=1 if CC=clang. That way,the rest > > of lib.mk, and any Makefiles that include lib.mk, can base decisions > > solely on whether or not LLVM is set. > > ICBW but I believe there are still some architectures with clang but not > lld support where there's a use case for using CC=clang. Does CC=clang even work for the selftests? lib.mk here uses 'CC :=' so won't CC=clang get overridden to CC=$(CROSS_COMPILE)gcc? Cheers, Nathan