Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit dbef1811 authored by Miguel Ojeda's avatar Miguel Ojeda
Browse files

kbuild: rust: use `-Zdebuginfo-compression`

Rust 1.74.0 introduced (unstable) support for the
`-Zdebuginfo-compression` flag, thus use it.

Note that the releases built by the Rust project (i.e. the ones provided
by rustup) do not enable support for zstd in their bundled LLVM (yet,
at least), thus the Rust compiler will warn, but the build will proceed:

    warning: unknown debuginfo compression algorithm zstd - will fall
    back to uncompressed debuginfo

Link: https://github.com/rust-lang/rust/issues/120953
Link: https://github.com/rust-lang/rust/pull/115358


Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240217002622.57322-1-ojeda@kernel.org


[ Added note about zstd support in Rust-provided binaries. ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent b8b2096a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment