kbuild: rust: use `-Zdebuginfo-compression`
Miguel Ojeda
maintainerPATCH 1/1 kbuild: rust: use `-Zdebuginfo-compression`
Rust 1.74.0 introduced (unstable) support for the-Zdebuginfo-compression flag, thus use it.
Signed-off-by Miguel Ojeda <[email protected]>
--- scripts/Makefile.debug | 2 ++ 1 file changed, 2 insertions(+)
scripts/Makefile.debug +2 -0
@@ -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
base-commit: 841c35169323cd833294798e58b9bf63fa4fa1de
Signature · 1 line
2.43.0
Miguel Ojeda
AppliedQuoted 7 lines · Miguel Ojeda
Rust 1.74.0 introduced (unstable) support for the
-Zdebuginfo-compressionflag, thus use it.
[ Added note about zstd support in Rust-provided binaries. ]
Applied to rust-next -- please feel free to still send reviews or tested-bys for this one!
Cheers,
Miguel
Quoted 7 lines · Miguel Ojeda
Rust 1.74.0 introduced (unstable) support for the
-Zdebuginfo-compressionflag, thus use it.
Reviewed-by Alice Ryhl <[email protected]>