From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 007D51DE4FB; Tue, 2 Jun 2026 15:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780413430; cv=none; b=px5dnLNHc4m0kBHs3jMYEQZhRdfBu6zu/mdRYzK/PMi5bnHn1IwCiEHkpQhmlWRuELU86hE3i68NUh6LymRzNDK/YGeF2Hy4hnTpyNZVYC0d4uxflLUFZpW5WdneUdL54THDTo+cR4kAVl02H43he6LgoJgXYN79BSw44SMs8kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780413430; c=relaxed/simple; bh=nQTltwh9fUa/xyYjIk1zzY/ReEq4pAQ2zyCKz1loiKE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ERdVeN09FQOwVjBB+9ZPScCyzDZItnDVChDmtHZo3MxUR/1t/jdtfz2iR6J3NqtpnjTsxr3yGj84OFZXB8KI6y/KjfxLDLZ+Eyi82gWyZAtdeTWL6SbFqvkqL46nvaGVwQBpCw58V8X5Qgrax2zb/TNmzVMLeFZz1dqeCv8so+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ee88oKRG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ee88oKRG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AF721F00893; Tue, 2 Jun 2026 15:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780413429; bh=GKtr47eSpQvznDz/neQt1Z8aJ4k0LQqb6m7YdRTw4gw=; h=From:To:Cc:Subject:Date; b=Ee88oKRGb7DtMv9xu43c8zsVH52a6RTqJpMFPy/9m43glqchgSOMqpzrUlTYDKlJt yst4QjBOWnZPa34/hZ0q13aUuKBdJr/du2nWMx+1AuDTZudxXBiQhkCUdPCjVY/DSw iGwEInX8WEB3rC9FQOH2BubGYLP9kwGEebzsoaVT68jWx+JWpeXSefODIlUMeVK+PE ZAly1B6Jm9wkfexgvkIOjkVkSRYGpof3dRRJFOkk1PXlMO0cMaNE98LMQ48QYjpO6a YMO/W2kHDnCs7VdvWPSPYLqoWNYFfPabaDXZkF0MiBCS+0WmTzIBmxZQ9r8qVUTltz nB2p60VMrWn0w== From: Miguel Ojeda To: Miguel Ojeda , Nathan Chancellor , Nicolas Schier Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild: rust: rename flag to `-Zdebuginfo-for-profiling` for Rust >= 1.98 Date: Tue, 2 Jun 2026 17:16:38 +0200 Message-ID: <20260602151638.14358-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Starting with Rust 1.98.0 (expected 2026-08-20), the `-Zdebug-info-for-profiling` flag has been renamed to `-Zdebuginfo-for-profiling` (i.e. one less dash, to match `debuginfo`s in other flags) [1]. Without this change, one gets in the latest nightlies: error: unknown unstable option: `debug-info-for-profiling` Thus pass the right name. Link: https://github.com/rust-lang/rust/pull/156887 [1] Signed-off-by: Miguel Ojeda --- scripts/Makefile.autofdo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.autofdo b/scripts/Makefile.autofdo index 3f08acab4549..1442043da139 100644 --- a/scripts/Makefile.autofdo +++ b/scripts/Makefile.autofdo @@ -3,7 +3,7 @@ # Enable available and selected Clang AutoFDO features. CFLAGS_AUTOFDO_CLANG := -fdebug-info-for-profiling -mllvm -enable-fs-discriminator=true -mllvm -improved-fs-discriminator=true -RUSTFLAGS_AUTOFDO_CLANG := -Zdebug-info-for-profiling -Cllvm-args=-enable-fs-discriminator=true -Cllvm-args=-improved-fs-discriminator=true +RUSTFLAGS_AUTOFDO_CLANG := $(if $(call rustc-min-version,109800),-Zdebuginfo-for-profiling,-Zdebug-info-for-profiling) -Cllvm-args=-enable-fs-discriminator=true -Cllvm-args=-improved-fs-discriminator=true ifndef CONFIG_DEBUG_INFO CFLAGS_AUTOFDO_CLANG += -gmlt base-commit: 025fd4b4fd382112bd4489e5b4437a295934fc19 -- 2.54.0