Skip to content

Commit 83a1681

Browse files
ojedafbq
authored andcommitted
kbuild: rust: use -Zdebuginfo-compression
Rust 1.74.0 introduced (unstable) support for the `-Zdebuginfo-compression` flag, thus use it. Link: rust-lang/rust#120953 Link: rust-lang/rust#115358 Signed-off-by: Miguel Ojeda <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 80f9737 commit 83a1681

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/Makefile.debug

+2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ endif
3535

3636
ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZLIB
3737
DEBUG_CFLAGS += -gz=zlib
38+
DEBUG_RUSTFLAGS += -Zdebuginfo-compression=zlib
3839
KBUILD_AFLAGS += -gz=zlib
3940
KBUILD_LDFLAGS += --compress-debug-sections=zlib
4041
else ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZSTD
4142
DEBUG_CFLAGS += -gz=zstd
43+
DEBUG_RUSTFLAGS += -Zdebuginfo-compression=zstd
4244
KBUILD_AFLAGS += -gz=zstd
4345
KBUILD_LDFLAGS += --compress-debug-sections=zstd
4446
endif

0 commit comments

Comments
 (0)