Message ID | 20240217002602.57270-1-ojeda@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69580-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp79310dyc; Fri, 16 Feb 2024 16:49:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUnd6S9Aqaam84G9H+NBEqlgigE8rQlTyUlesrR4oycuChQMiqv7A/g013f2c1Y1trKC7sMKoA8CeGAHf6GYSvASR6Vzg== X-Google-Smtp-Source: AGHT+IFrfxzxT+fsI0+jNobfRsTs0SBBLvhXeXLPWVEwFboWLGx7hu7QiUOoUBw3NTPBkKkTMjWt X-Received: by 2002:a05:6870:c6a8:b0:21e:64b6:a882 with SMTP id cv40-20020a056870c6a800b0021e64b6a882mr3597257oab.57.1708130956644; Fri, 16 Feb 2024 16:49:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708130956; cv=pass; d=google.com; s=arc-20160816; b=RdD1qn0dtX7sCw+JFyYhsDQUECDjFjhxmZ3+v8vxSI1S82n0YZLPMq6p7KYZxlIXmw ZzwFUGaGmM9GIh/xit5HiOsywjTmlu3QMoJNQDFjDFS9uR/Rr0g8RB0+UxohAe0p5r3F U8bFjBITNz6i09HIjn8pfuGyEjKT4hVNM2AaiBxxl3vsczDjaWXLca+wuh6He3ewmPGn cPNK9amqQeTOal4L7wyIBGjvYcM7t8HQIg5y9ywffOk87BMxHcHR4xkUPVwb66i/W3LP nmGxJHRLfJcr8rseh5WqozzGHlGlXQmbIAv3Hoc5/C3zc0QQnSizw6t3MdyNL0NVWeIe Svsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Z/aMjF1o957E03Ah+O2P/e285hV2Gq1uRGotmg5Y+bQ=; fh=JUH3UPYS5Il2HIIxK9baqjsf+jfCgttrgMQ38jXlPc8=; b=pSbRf+8jgkV48R6ycsK0hHXb8eNpJLBjexn66Q7hNd6tcijv5SWZPM8DvdMZGFtjYF RpSxF63hLgFAEikNBXQf+MRByW6o7NLCqzuYpFSirM0lfPhtOMAD06fmLJmCJuDJaQAr R6b5S2PwlNG1SoI9dyMR4D8MDaimjTE9cDauk6dhbjoGTntmJCg8j2mxR64JCgO4joyn ja6/AaG8JOMzRJEDlaXtOVlL42GLMHyHr6cmDQyqK9izYkAb2iUagGSh7D0hMX9LMKYi bVIgRXQ594UkBysRm5ju4CEKakbWRTrYFJ+mH+vIfQ8hbk21g+4L76hMeY6pwWTriVsF B1GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EqORXxC1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69580-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69580-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id dq4-20020a056a020f8400b005dc071d13c7si653944pgb.273.2024.02.16.16.49.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 16:49:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69580-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EqORXxC1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69580-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69580-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 25848B217E3 for <ouuuleilei@gmail.com>; Sat, 17 Feb 2024 00:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F9102628C; Sat, 17 Feb 2024 00:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EqORXxC1" 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 6207011CB8; Sat, 17 Feb 2024 00:26:21 +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=1708129581; cv=none; b=SmD6ZR3b88Hl9SYDKVMAN+Q4vg/7rbYsANfi1OxvQUlllPqTn5be9M15If7HFihwuPE6IFEOu4CYJt1reXYm0WJh93GYE3hbu/59QlpQg0RyfAkPyFt470D+FPRYaeOO+j3HOL1Xkc67gEgeYZsnrlB1j2eeTgBgkNg/h+jESIs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708129581; c=relaxed/simple; bh=avUrLgmjaZ/4znw54EQSx74+Weu5yL4/tWV6Q0kUqqA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YBZq4NySrSgIe1eK4FS+3C2YRdCqguQWjQTFxMIWFbfCFiTY1B1GMpB9yhsAwHPHrBabk/hOnRkbdkYbzGrYLekUMhg5PAU/h9Pq8q/TErSHjuW/fPX8P2YncTKXKw/KFPp4WNnsrT4vKT18BooqS9eSV84abX2p8qRO92h3upY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EqORXxC1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA652C433F1; Sat, 17 Feb 2024 00:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708129580; bh=avUrLgmjaZ/4znw54EQSx74+Weu5yL4/tWV6Q0kUqqA=; h=From:To:Cc:Subject:Date:From; b=EqORXxC1n3bWyTzb2paqmiMw9Jj/Ee94sJ4ogLfyAUVuHEzAR853Ew7zMBcJq4Rqa ZikziQ11oc+cVuDQ9yiOKxQATx4JQEjra6m6uZ/s7z+eXR2s/UzlQjPWRIUSZp3QTF U9RcOq9RXm8f0+Xtpj7EHLld6R9yZqvhMmqaBZ75AGbwCSyl+rplz84uExyuvsxHlu 7r5dXT3lDkeYXxP7oIKkvlnX97eyPpM+S4z3goT/pFFeZhHN0hISMF1dUoEFqqaixD 595cKxAoyHSxa+ntNmrh98JYCdvRmkrFqq1VTDkQoaHTmlzhLy7WDfBiB+kH+CbGLH Iexs3Iu5oAhJA== From: Miguel Ojeda <ojeda@kernel.org> To: Miguel Ojeda <ojeda@kernel.org>, Wedson Almeida Filho <wedsonaf@gmail.com>, Alex Gaynor <alex.gaynor@gmail.com> Cc: Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>, =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= <bjorn3_gh@protonmail.com>, Benno Lossin <benno.lossin@proton.me>, Andreas Hindborg <a.hindborg@samsung.com>, Alice Ryhl <aliceryhl@google.com>, Masahiro Yamada <masahiroy@kernel.org>, linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH] kbuild: rust: use `-Zdwarf-version` to support DWARFv5 Date: Sat, 17 Feb 2024 01:26:02 +0100 Message-ID: <20240217002602.57270-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791105125959688499 X-GMAIL-MSGID: 1791105125959688499 |
Series |
kbuild: rust: use `-Zdwarf-version` to support DWARFv5
|
|
Commit Message
Miguel Ojeda
Feb. 17, 2024, 12:26 a.m. UTC
Rust 1.64.0 introduced (unstable) support for the `-Zdwarf-version`
flag, which allows to select DWARFv5, thus use it.
Link: https://github.com/rust-lang/rust/issues/103057
Link: https://github.com/rust-lang/rust/pull/98350
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
scripts/Makefile.debug | 6 ++++++
1 file changed, 6 insertions(+)
base-commit: 841c35169323cd833294798e58b9bf63fa4fa1de
diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug index 059ff38fe0cb..693452bc826a 100644 --- a/scripts/Makefile.debug +++ b/scripts/Makefile.debug @@ -17,6 +17,12 @@ endif DEBUG_CFLAGS += $(debug-flags-y) KBUILD_AFLAGS += $(debug-flags-y) +ifdef CONFIG_DEBUG_INFO_DWARF4 +DEBUG_RUSTFLAGS += -Zdwarf-version=4 +else ifdef CONFIG_DEBUG_INFO_DWARF5 +DEBUG_RUSTFLAGS += -Zdwarf-version=5 +endif + ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += -fno-var-tracking DEBUG_RUSTFLAGS += -Cdebuginfo=1