From mboxrd@z Thu Jan 1 00:00:00 1970 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 7599E342CB0; Fri, 20 Mar 2026 21:18:13 +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=1774041493; cv=none; b=BI0zLRHUOZ2P0dunx0Z7niEulhiIoWV9Abz9+9GwalWFOTZXZA703CAyT9syZQ8jM2fVBdVx3NTh6MiwYnjy7II3W1pdbfJGqww6PQ/tbICviQFclwra81x9ISkHEeXWNebfhyyCtmkSSLkkjM2Igh1VfWE5LiAGbji+3DQUlZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774041493; c=relaxed/simple; bh=gPisEgDJe0zpyTp4fWKzmOXq9Wul6KnaL7QEOqwJrjg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NiCJgDk/j7Z/E1zwSkUfbVXWcPtQkQ5ZQD0iH4m2ThfEj7Iw4BBbfE0OQ76SV7mzSedhIDwhryC0WqFReXVm2LpDKsDiHl5rHb5xl3ClkrSMCkj64buGjNsOqHLuRdTPTyPW2grY0p8bo7tOQ4CJPr4PpGpGadbiUVApWWoJ2gI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nXZ776M6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nXZ776M6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58A63C4CEF7; Fri, 20 Mar 2026 21:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774041493; bh=gPisEgDJe0zpyTp4fWKzmOXq9Wul6KnaL7QEOqwJrjg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nXZ776M6F+p+JioW/4jJa0rcok8oqAg9raEiMjXJ8R6QjtkOzOQmTK4HQv9UpAz4j fUZW94EDuNt6Pmm0wbS9TqpyCL+mssy8/+dQ8d+0XFjfA3Lswkr4cY95RsVQ93CSWV rXjvTR9DZ90VsvSfu3Y60bgD+tRi87gqdyaF14mZzpBCuFrxFUScntJxiojRxGU0g8 OJt6NoNIpT0TLpG7t+D1g8ToZH40r69qcFXFu4/J5qVHOqJKJ4Tmgmhyx4iSC2rebH r1ycRMdU1itYurdzpqJyJjX0ce1ipFUyCfpAmjGrc2OREJfEoV2lNDW44CMxjdEbH5 u7YAjTvlcIoKg== Date: Fri, 20 Mar 2026 14:18:07 -0700 From: Nathan Chancellor To: Alice Ryhl Cc: Gary Guo , Rong Xu , Han Shen , Nicolas Schier , Miguel Ojeda , Boqun Feng , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Matthew Maurer , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH] kbuild: rust: add AutoFDO support Message-ID: <20260320211807.GA3990088@ax162> References: <20260319-autofdo-v1-1-51ee2a7290cd@google.com> <20260319235443.GB769346@ax162> Precedence: bulk X-Mailing-List: rust-for-linux@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: On Fri, Mar 20, 2026 at 06:47:05AM +0000, Alice Ryhl wrote: > How about we just call them: > > * CFLAGS_AUTOFDO_CLANG > * RUSTFLAGS_AUTOFDO > > then? For cflags, clarify that they are clang flags. For rustc, there is > no such distinction to make (yet). Yes, that seems reasonable to me (although CFLAGS_AUTOFDO_CLANG is already the name so I assume you mean just keeping it as it is). > Another option: > * CFLAGS_AUTOFDO_CLANG > * RUSTFLAGS_AUTOFDO_RUSTC I don't see much of a reason to make this distinction until the rest of the kernel's Rust code can be built with a different Rust compiler. Cheers, Nathan