Message ID | 20240217002622.57322-1-ojeda@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69581-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp79376dyc; Fri, 16 Feb 2024 16:49:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwYkn9gKUFE+crFhw+AUDmXqfrWjmhBcv7iVDdZPtJMq1HQPSJsXikr1tVmmRZ71Ka5z/64MAut4F3XcSfZU85kPKfVw== X-Google-Smtp-Source: AGHT+IHXyvPWQZGigF47gisrgek2CrViHjOnAWtMESYlxWAajuVw8OozAecytNW4UgDwDesgGeoE X-Received: by 2002:a05:6830:1d46:b0:6dd:e1b0:443e with SMTP id p6-20020a0568301d4600b006dde1b0443emr7074858oth.5.1708130970535; Fri, 16 Feb 2024 16:49:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708130970; cv=pass; d=google.com; s=arc-20160816; b=iELHPucS8y8DzaA0hRWX06g5t8ns+kMlzbTDROIM6K7IcMYJzhfHl8gcXursslo5Xc tmQ3Pdg/3Sguo8ab77ehz8wBu0YjaY9ph7fSTgxQlQM0jv1XbeO+ovShSPzBCRCJHTiD dQf+gOhyR/vf43nUbQdxDAr52hZuBjwNrPmdsw+p2WixPalxwgOHRIwbur8/j2vXbskl 1agpfgpYNdNV76xvkOtv+QmHme7eUm4ZwLLH4N8CUzlCcOyVUV62sYaIQwYh9Itt/BkS wbqgrrhuJ/PvsquiKovuR4DpYXFVd7i7IJLeHl33J8vOY21F2lImRETOoloycMXU9Ttf Ejaw== 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=05utzpx6sfONVL1Lv8Q/Ex1JLyYaW1COymcaCKg0aTU=; fh=JUH3UPYS5Il2HIIxK9baqjsf+jfCgttrgMQ38jXlPc8=; b=DXycvOplZPTDu2inlmdGxVWa8f7bc7MH9R8IKv0chmP5s+pt98iZpr0sjtLH9FEwfm MgU0Nys0brbMco243GBlrUIFO2WcbHLf4slaulxPBbMKlikuiW6BS2P2hTD1HtZB3upt hTRiWkH5eSCfkXyr8CopdW5qbC4+Sk7WV6MZ7W+GcsOqi09wwLRIb2ly47kG6VM8C0W2 JK+LecOG4S7ciq6t9UbemwqSkmDZdtnKhVM4MpMqPg7/8lWjxKyOyHWHDyoKkq4K0KkL q+QtK2H4/g6e7mHr7zWI6IeL6+3Iw7GvIisUSuMG4S8MXaT/DH57isn+ZHfiEZa99jS7 bfKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cbt7AHot; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69581-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69581-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a73-20020a63904c000000b005dc952f426asi664463pge.850.2024.02.16.16.49.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 16:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69581-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cbt7AHot; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69581-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69581-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 15D67B2318B for <ouuuleilei@gmail.com>; Sat, 17 Feb 2024 00:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC1D42C195; Sat, 17 Feb 2024 00:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cbt7AHot" 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 3B1E92C182; Sat, 17 Feb 2024 00:26:33 +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=1708129594; cv=none; b=dF09XWcNW1bEALO/sgjuvx4ThY28jYtLV52qkJw/5kml4QC2osZmF/KKgWH5wki7lw/gHuene4qWhssbnxL+5jKQbDSGDXzeqv6K4PxQV/N8veEHcpQ/irtJ0UYD2LHEL9g4dKyVRvMTU51HME23v2McTDAGmZ9S81x62NGngSA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708129594; c=relaxed/simple; bh=ZJjfGMTsyTvRWJupoNiAtauUXcaLox0EQBRIXT1v82M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RZ51wwoWDyU2d3al6XcEV88FzpUhp39/hpbzT4rLdHvQKT5mWAORACUbKD8enC1m6azX1+YXZAb7WCL/iiAmx0TWpwaHf2WEN9vf2m8tm0Sezo7cgiMXkiwB3Ql9UciCxadAhNYdZNClc9vnA6iV/Z6whT+BhuUjQMy6Pc2vZNQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cbt7AHot; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B49BC433F1; Sat, 17 Feb 2024 00:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708129593; bh=ZJjfGMTsyTvRWJupoNiAtauUXcaLox0EQBRIXT1v82M=; h=From:To:Cc:Subject:Date:From; b=cbt7AHot8T6owilIlUjFZ8MPGBNMakZIdu78xQ7A8mIrvHhOExjeV87pCNU25B9ZL w9/QZkwdKsQHJ2CDqMcVwXI4kHxO5Iqa4AQdP+hiQ6/fZJ6MrgdM3XH8s5tjl6/FRR SQuXEH4tDmLaHlT39HwKr7EVFiLlInMg7oNApq1FVIwk3ObGS6Wec28ZTIu7S9dcvt eSktfaDPIyLEb53EKIYz97t4OSUh5Rqbz/k0EXgbsnPdSZZDI2ZCQrysyIsTZxbcc5 SB4ZGazlHqsDQwqMWkGe31sszmJ0bKTdVDWa1hGM2x50jVx4ClH0tY2Ky6E2iS0a+q TQJzKRUhdNeMQ== 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 `-Zdebuginfo-compression` Date: Sat, 17 Feb 2024 01:26:22 +0100 Message-ID: <20240217002622.57322-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: 1791105140340088587 X-GMAIL-MSGID: 1791105140340088587 |
Series |
kbuild: rust: use `-Zdebuginfo-compression`
|
|
Commit Message
Miguel Ojeda
Feb. 17, 2024, 12:26 a.m. UTC
Rust 1.74.0 introduced (unstable) support for the
`-Zdebuginfo-compression` flag, thus use it.
Link: https://github.com/rust-lang/rust/issues/120953
Link: https://github.com/rust-lang/rust/pull/115358
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
scripts/Makefile.debug | 2 ++
1 file changed, 2 insertions(+)
base-commit: 841c35169323cd833294798e58b9bf63fa4fa1de
diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug index 059ff38fe0cb..1f96af51f936 100644 --- a/scripts/Makefile.debug +++ b/scripts/Makefile.debug @@ -29,10 +29,12 @@ endif ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZLIB DEBUG_CFLAGS += -gz=zlib +DEBUG_RUSTFLAGS += -Zdebuginfo-compression=zlib KBUILD_AFLAGS += -gz=zlib KBUILD_LDFLAGS += --compress-debug-sections=zlib else ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZSTD DEBUG_CFLAGS += -gz=zstd +DEBUG_RUSTFLAGS += -Zdebuginfo-compression=zstd KBUILD_AFLAGS += -gz=zstd KBUILD_LDFLAGS += --compress-debug-sections=zstd endif